Bug with saving my work in .eps

General discussions about Inkscape.
ssliz
Posts: 1
Joined: Fri Mar 15, 2013 2:02 am

Bug with saving my work in .eps

Postby ssliz » Fri Mar 15, 2013 2:09 am

Dear Forum members,
I attach an example of the svg file, which, being saved in .eps looses bits of text. The only workaround I found is to save to pdf, then open in other program and print to .ps from there.
Then I open the resulting .ps in Inkscape and successively save it in .eps.

I have not seen any "layers" in my document. So, what's wrong?

Best regards,
Sergey
Attachments
Ueff2.svg
(158.77 KiB) Downloaded 209 times

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Bug with saving my work in .eps

Postby brynn » Fri Mar 15, 2013 10:31 am

Image
Welcome Sergey!

I can't test the file for you, since I'm not set up to be able to open EPS files. But I have downloaded and opened in Inkscape. At first I thought the problem might be flowed text, which can cause problems sometimes. But I don't see any flowed text in the file. I do see that a lot of text has already been converted to path, though. Maybe you could convert all the text to path? That way, if the problem is related to the text, you can avoid it completely.

If you think you may need to edit the text at some later time, you can save it as text on a hidden layer. ....although I can't say for sure that hiding it will prevent any of it from being lost when you do the save.

Or maybe someone else will have a better idea?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Bug with saving my work in .eps

Postby ~suv » Fri Mar 15, 2013 7:11 pm

This is a known bug in an older version of the cairo graphics library (1.10.x) which affects Inkscape's PS/EPS export too (Inkscape uses the cairo graphics library for PDF/PS/EPS export). The actual bug in cairo had been fixed with the release of cairo 1.12.

Workaround (e.g. for the attached file) for Inkscape users on Windows and Mac OS X [1], and for Linux users on older distros:
  1. Create new objects (text, arrows, etc.) on a new layer (or move those already added to a new layer)
  2. switch back to the original layer, select all, and repeatedly ungroup the imported EPS diagrams until the message in the status line tells that there are no more groups to ungroup
    (Note: this is the quickest way to get rid of the clips the imported diagrams use inside the nested group structure, but is only applicable if the clips in the diagrams don't actually clip larger graphs to an area of interest)
  3. save as Inkscape SVG under a new name, vacuum defs, and then save a copy as EPS/PS file.

-----
[1] The currently available Inkscape packages for Windows and Mac OS X include older (affected) versions of cairo, and users cannot upgrade to a newer cairo version. On Linux, it's up to the distro which version of cairo is installed, and varies depending on distro and distro version.


Return to “General Discussions”