GNOME Bugzilla – Bug 310322
EPS export of charts
Last modified: 2008-10-09 18:26:02 UTC
Currently charts can be exported as PNG, JPEG, or SVG. These can be converted to EPS, but a direct efficient high-resolution EPS export would be more convenient. In addition, PNG and JPEG exports rasterize at screen resolution (c.f., Bug 141687) and the SVG export doesn't curently handle series patterns (Bug 310320).
As a possible solution for this kind of problems (i.e. export to some new image format), I would suggest an additional item in the 'Save as image' menu for export into a pipe to an external program. Something like write to '| convert svg:- eps:file.eps'. This must be relatively simple to implement. NB: convert from ImageMagic is used as illustration only. It produces terrible result. Much better is 'inkscape file.svg -E file.eps', but inkscape cannot read from stdin at the moment and needs a script to handle temp files. (There exists a feature request for input from stdin on www.inkscape: http://sourceforge.net/tracker/index.php?func=detail&aid=1368829&group_id=93438&atid=604309 ). Best regards, V.Chukharev
My plan is to use cairo capabilities. I've already implemented PS export via our experimental cairo renderer, but it needs current CVS version of cairo. We also need to check for regression comparing to current libart renderer, before enabling by default this cairo renderer.
The suggested export to a pipe is more general mechanism, useful even when cairo works. Am I wrong that it is almost trivial to implement? Best regards, V.Chukharev
*** Bug 334031 has been marked as a duplicate of this bug. ***
We have switched to cairo, and now, using cairo 1.2.0, we support export to PS and PDF.
May I propose to reopen this bug? EPS format is _very_ important. TeX/LaTeX, OOo, some other productivity systems can use EPS and cannot use neither PS nor PDF.
Looks like it should be supportable with cairo-1.5.2 cairo_ps_surface_set_eps
Created attachment 107886 [details] [review] Quick untested patch This looks like it should be sufficient. However, it can not go in until we branch for 0.7 in that it breaks abi compatibility by changing the enum. It also requires an unstable version of cairo.
This one has been fixed in the 1.9 branch
Is EPS export actually fixed? I cannot export a chart as EPS neither in 1.9.0 nor in 1.9.1 on two different Win-XP. Do I need anything special to use it? I installed the newer one from 1.9.1-win32-20080505 and I presume that includes relatively new goffice.
It works with 1.9.3, I just tested on winXP and imported the eps file inside a MSWord document. 1.9.1 is not the latest available build for win32.
Good. And how can I find the latest build, please? http://www.gnome.org/projects/gnumeric/downloads.shtml has only 1.9.1 as the latest.
http://www.gnome.org/~jody/gnumeric/win32/ is where you'll find all recent builds.