Writer and EPS images.

Just a heads up in case, like me, someone uses EPS images in their documents.
Most of my data sheets have EPS images (for the vector graphics) output from our cad system. Up until LO4.1 went to 4.2.. these were printed correctly.
I just updated to 4.3 and noticed this was broken, went back to 4.1 and OK, tried 4.2 and 4.4 and both broken also.
There is a bug filed at https://bugs.documentfoundation.org/show_bug.cgi?id=85748

Good news, Apache OO 4.1.1 is not broken and prints EPSs ok.
Steve

Nothing new there...

But, you don't mention OS. Also, do you have pstoedit, imagemagick or
ghostscript installed?

Please see these issues for a better grasp of the issue.

https://bugs.documentfoundation.org/show_bug.cgi?id=67464
Request for built-in EPS rendering ...

https://bugs.documentfoundation.org/show_bug.cgi?id=81497
PRINTING: to PDF with Adobe Distiller or GS based PDF printer, EPS images
not rendered to PS vector for PDF, instead print uses the preview of EPS
image

https://bugs.documentfoundation.org/show_bug.cgi?id=81592
Bad Quality/Rendering of EPS graphics in LO 4.2 and 4.3

Hi.
I have imagemagic and ghostscript.
As I mentioned LO4.1 works fine. This was on my linux (opensuse 12.2,13.2) and mac(osx 10.6 - 10.8 I think).
It is only LO4.2 and beyond with the problem. The problem is more accurately described by your second reference

https://bugs.documentfoundation.org/show_bug.cgi?id=81497

Which my reference may be a duplicate of (or may be not).
Anyway it is good that the offending commit seems to have been identified and AOO is a work around.
Steve

At 4.2.4 we moved the EPS preview rendering to pstoedit, with fall back to
convert.

tdf#85748 <https://bugs.documentfoundation.org/show_bug.cgi?id=85748>
.eps files included in Writer documents “disappear” on printing

and

tdf#89073 <https://bugs.documentfoundation.org/show_bug.cgi?id=89073> - eps
graphics or images don't get printed or exported to PDF in Writer on 10.10.2
OS X

are both really duplicates of tdf#67465
<https://bugs.documentfoundation.org/show_bug.cgi?id=67465> - EPS
rendering: locating pstoedit on Mac a problem

Believe, on OS X an EPS with a preview used in Writer, that preview gets
clobbered and not-regenerated during PS printing. Lack of prefered pstoedit
in system path results in "red box with annotation" reported.

Thanks for the info Stuart, its certainly been interesting reading.
I am not so worried about PDF. I know that the built in PDF does not function to produce EPS as vector and I am not worried about preview. I have EPS without recognisable preview in many cases so just show as a near blank frame.
I am more concerned that the EPS is not output to postscript so does not print on postscript devices or in postscript post processing prior to printing.
Steve

Hi :slight_smile:
Thanks Stuart :slight_smile: and Steve for letting us know about the issue.

I mostly use Svg format when i need scalar graphics but so many Windows
machines seem to have such trouble with any vector graphic format that i
tend to use png or gif (or sometimes jpg if i have to) when i need
something to work on Windows.

I've also noticed that although graphic designers seem to supply logos and
other materials in scalar vector graphic formats, usually Eps, but
companies and people seem to assume that no-one else can use them so they
usually give me nasty messy Jpg versions that somehow manage to be very
heavy.

Regards from
Tom :slight_smile:

Not sure what CAD software is used, if it is ACAD and the work flow is PSOUT in ACAD and then import in LO, you may want to consider changing your flow: Acad PSOUT > Inkscape save (SVG) > LO.

I understand it is an extra step but it will give you great post edit possibilities in Inkscape if needed, SVG is a clean format and LO supports it pretty good (except for fancy fonts and effects like drop shadows). Best of all: Geometry is pretty well preserved.

Two examples from CAD:
http://media.vanderworp.org/metafiles/etc/cable_hook_equal.svg: Seamless into LO.
http://media.vanderworp.org/metafiles/diagrams/banker1.svg: Shadow becomes solid in LO, so be it.

Hi :slight_smile:
Ahh, i have trouble with the Svg output from Inkscape sometimes. I suspect
it is a user-error (a classic pebkac probably). There are 2 versions of
Svg output, one more standard and the other easier to pull back in and
re-edit, and i think one of them goes a bit funny with any lettering.

I haven't explored this enough to really figure out what is going on yet
but i'm a total noob to Inkscape anyway.
Regards from
Tom :slight_smile:

This is why I do not use Vector Graphics in my documents. I export them to JPG, PNG, or GIF, and use them.

This solves a whole lot of headaches on my part and compatibility issues with the people who get these files in ODT or DOC formatted versions.

I like Inkscape, but I tend to export those drawings to PNG instead of SVG. Actually, for some reason, I have difficult printing correctly from Inkscape on my Linux Mint system. So I export it to PNG and then print that file.

Hi :slight_smile:
Yeh, if a document can stay in LibreOffice/OpenOffice then Svg and Eps
seems to help with file-size quite a lot and gives a much better result but
it is still too rare to be able to do that. 'My' company's newsletter
benefits from scalar vector graphics but almost everything else still needs
to work in MS Office too. Even 'my' company's website seems to need to
avoid Svgs and Epses.
Regards from
Tom :slight_smile:

Hi :slight_smile:
This sounds like an excellent plan. I wonder if it's possible to run from
a command-line and thus maybe even scriptable and maybe even run on
multiple files at once! An extra step is not always such a huge problem.
Regards from
Tom :slight_smile:

You mean http://wiki.inkscape.org/wiki/index.php/Inkscape_SVG_vs._plain_SVG ? And Adobe software also puts a lot of binary code in SVG, I've noticed that exploring SVG's from WikiPedia - perhaps bitmap previews. In Inkscape, the XML editor (Edit > XML Editor of Shift+Ctrl+x) shows all the extra entries.

But I assume LO simply ignores these namespaces and parses only true SVG code. No problems so far except for funny positioning in LO, caused by bad sized pages in SVG, Inkscape, File > Document Properties > Resize page... > Resize page to drawing. May it be that that causes problems in LO?

Hi :slight_smile:
It could be that. It happens with images i resize and clear the meta-data
from in order to tidy-up logos. I don't have a good example to test nor
time to test at the moment. Sorry!

I am fairly convinced there is just something really dumb and obvious that
i am doing wrong as a total noob. It could be that the fonts i was using
were MS copyrighted fonts. Probably Steve could figure it out and fix in
just a few minutes (or not even suffer from the problem at all).

Yes, i like those 2 options for types of Svg. It's a bit like Photoshop
having a .Psd format or Gimp having a .Xcf so that it's easy to make minor
changes without it being a big drama. I dunno if one of them is keeping my
error and the other smooths it out or what or if format is nothing to do
with it.

Regards from
Tom :slight_smile:

Hi :slight_smile:
I got an off-list reply that might help other people (and me too of
course).
Regards from
Tom :slight_smile:

There may be a newer and cleaner way to distribute your drawing If your willing to spend a little time with HTML5
From Inkscape save as "plain svg"
Create html page using "object"
  <object type="image/svg+xml" data="your_file_here.svg"></object>
Don't forget to set size of image (haven't done this myself, but it is HTML code to tell what size the svg should open at.)
Use Firefox to test webpage.

At that point you can distribute to any place there is a FireFox browser.

Others will be able to use InkScape to modify original file. I am not sure about password file locking.

There are plenty of examples of how to do this on the web. Take a look at http://www.sitepoint.com/add-svg-to-web-page/

I have not done a full comparison between the original InkScape and FireFox images. It does seem to work well.
I have not tested in other browsers.
I have not tested printing from FireFox.

Hope this helps.

thanks Tom

Hi Steve,

Most of my data sheets have EPS images (for the vector graphics) output
from our cad system. Up until LO4.1 went to 4.2.. these were printed
correctly.

  This an annoying one to fix sadly; it's easy enough to get EPS into a
Postscript stream - but when we switched to PDF that went to pot.

I just updated to 4.3 and noticed this was broken, went back to 4.1 and
OK, tried 4.2 and 4.4 and both broken also.
There is a bug filed at
https://bugs.documentfoundation.org/show_bug.cgi?id=85748

  It is notable that the underlying issue:

https://bugs.documentfoundation.org/show_bug.cgi?id=67465

  Is an easy-hack, meaning anyone can work on it :wink: we just need to add
some hard-coded lists of suitable paths to hunt for the ps2edit
converter.

  In the longer term, having xpost integrated to actually properly render
the EPS would be far nicer; but that's rather a bigger job.

  ATB,

    Michael.

Thanks Michael.
I am not too worried about rendering as long as the postscript in the EPS is output to PS in the print output.
I didn't realise there were so many bugs for this. My situation is more like
https://bugs.documentfoundation.org/show_bug.cgi?id=81497
For now AOO solves the issue for me while I watch this bug resolution.
Of interest was that LO4.3 on my mac renders correctly on screen but prints incorrectly. If you can imagine that is quite misleading with an EPS with no preview.
Steve

That is rather curious =) I guess the great-white-hope is not having to
rely on some horrible external thing and having good, built-in EPS
rendering - roll on a contributor working on that.

  ATB,

    Michael.

Michael ,
sinds ages (2004-2005) we haved lots of EPS in our docs
a EPS without preview has never showed up (WIndows)
a EPS mostly printed corectly in a PDF (sometimes the rastered preview, sometimes the vectorgraphics)
sinds LO has native support for SVG we sucsesfully changed all EPS to SVG or EMT

EPS is mostly for Professional users and they have the know how to make correct SVG and using it in LO
Using PDF as a graphic would please many many users :slight_smile:

Greetz Fernand