After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 310322 - EPS export of charts
EPS export of charts
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
1.5.x
Other All
: Normal enhancement
: ---
Assigned To: Emmanuel Pacaud
Jody Goldberg
: 334031 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-14 08:50 UTC by jronne
Modified: 2008-10-09 18:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Quick untested patch (2.68 KB, patch)
2008-03-23 21:14 UTC, Jody Goldberg
none Details | Review

Description jronne 2005-07-14 08:50:42 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).
Comment 1 Vladimir Chukharev 2006-01-21 22:01:03 UTC
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
Comment 2 Emmanuel Pacaud 2006-01-22 08:37:53 UTC
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.
Comment 3 Vladimir Chukharev 2006-01-27 10:44:29 UTC
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
Comment 4 Emmanuel Pacaud 2006-03-12 21:41:10 UTC
*** Bug 334031 has been marked as a duplicate of this bug. ***
Comment 5 Emmanuel Pacaud 2006-10-01 20:47:40 UTC
We have switched to cairo, and now, using cairo 1.2.0, we support export to PS and PDF.
Comment 6 Vladimir Chukharev 2008-03-23 20:31:36 UTC
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.
Comment 7 Jody Goldberg 2008-03-23 21:12:21 UTC
Looks like it should be supportable with cairo-1.5.2
cairo_ps_surface_set_eps
Comment 8 Jody Goldberg 2008-03-23 21:14:35 UTC
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.
Comment 9 Jean Bréfort 2008-06-25 14:27:07 UTC
This one has been fixed in the 1.9 branch
Comment 10 Vladimir Chukharev 2008-10-09 12:30:08 UTC
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.
Comment 11 Jean Bréfort 2008-10-09 13:47:35 UTC
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.
Comment 12 Vladimir Chukharev 2008-10-09 17:44:19 UTC
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.
Comment 13 Jean Bréfort 2008-10-09 18:26:02 UTC
http://www.gnome.org/~jody/gnumeric/win32/ is where you'll find all recent builds.