Hi,
First of all, I really really love inkscape, and am using it for all my technical drawings. If it had support for easily adding text to objects, and connection points, it would be even better ... but I'm sure these things or similar things have already been requested.
I would like to include the attached inkscape .svg file in a latex document. Using the png might work, except that I can't use pdflatex because I am making slides with prosper (which uses eps and is therefore incompatible with pdflatex ...). So I am stuck with eps.
If I export it to eps, it renders badly in all viewers I've tried, whether in eps or pdf form (gsview, ggv, acroread, gpdf).
I can get it to look nice if I import a png into the gimp and flatten the layers in the image, and then export to eps. However, this (a) is somewhat painful (especially for tens of images), and (b) doesn't preserve the image perfectly.
Is there any way to get eps files out of inkscape that the viewers I've listed (preferably acroread) will display properly, without taking the svg->png->eps multi-application route?
Thanks, Chris
P.S. I have gotten nice eps files out of inkscape before, but only black and white ones without any transparency / alpha-channel stuff.
Why not use the postscript printer drivers off adobe's website and print to file xxx.ps. This produces a good output that you can convert with gsview and ghostscript. The following link has a good description.
http://www.econ.ohio-state.edu/hineline/index.htm
-----Original Message----- From: inkscape-user-admin@lists.sourceforge.net [mailto:inkscape-user-admin@lists.sourceforge.net]On Behalf Of Chris Pickett Sent: Wednesday, 29 September 2004 3:43 p.m. To: inkscape-user@lists.sourceforge.net Subject: [Inkscape-user] nice eps output
Hi,
First of all, I really really love inkscape, and am using it for all my technical drawings. If it had support for easily adding text to objects, and connection points, it would be even better ... but I'm sure these things or similar things have already been requested.
I would like to include the attached inkscape .svg file in a latex document. Using the png might work, except that I can't use pdflatex because I am making slides with prosper (which uses eps and is therefore incompatible with pdflatex ...). So I am stuck with eps.
If I export it to eps, it renders badly in all viewers I've tried, whether in eps or pdf form (gsview, ggv, acroread, gpdf).
I can get it to look nice if I import a png into the gimp and flatten the layers in the image, and then export to eps. However, this (a) is somewhat painful (especially for tens of images), and (b) doesn't preserve the image perfectly.
Is there any way to get eps files out of inkscape that the viewers I've listed (preferably acroread) will display properly, without taking the svg->png->eps multi-application route?
Thanks, Chris
P.S. I have gotten nice eps files out of inkscape before, but only black and white ones without any transparency / alpha-channel stuff.
If I export it to eps, it renders badly in all viewers I've tried, whether in eps or pdf form (gsview, ggv, acroread, gpdf).
1. Postscript does not support transparency or gradients.
2. This particular image needs neither. Not only you have 0.75 transparency on the rects, but for some reason you overlay each one with a copy with complete transparency and a stroke. Replace that with a single rect with solid fill and stroke, and it exports OK into EPS which looks exactly as in Inkscape.
bulia byak wrote:
If I export it to eps, it renders badly in all viewers I've tried, whether in eps or pdf form (gsview, ggv, acroread, gpdf).
- Postscript does not support transparency or gradients.
Okay.
- This particular image needs neither. Not only you have 0.75
transparency on the rects, but for some reason you overlay each one with a copy with complete transparency and a stroke. Replace that with a single rect with solid fill and stroke, and it exports OK into EPS which looks exactly as in Inkscape.
You're right. For some reason I thought I needed transparency to get those colours.
Those odd borderless rectangles were there because I was planning to turn the image into a series of slides in a step animation, ending at the image I attached, and wanted a quick way to delete colours in preparing previous steps. I think this would still work if I got just got rid of transparency. It does some kind of roundabout in retrospect.
Thanks for the super fast response, Chris
P.S. Jamie, the link you gave was dead, not that it really matters now.
The particular sample you sent renders OK as eps using the following command:
inkscape -p '> pd_cfg.ps' pd_cfg.svg ps2eps -l -f pd_cfg.ps || ps2epsi pd_cfg.ps pd_cfg.eps
The only problem I noticed was that the rectangles in the flow chart are grey. This is because the rectangle borders have a fill of b9b9b900 (i.e. transparent grey). When printing, all alpha channels get flattened to FF (i.e. solid).
The basic rule is: IF EXPORTING TO PS/EPS, DON'T USE ALPHA.
You can write a script to remove the transparent grey fill from SVG images, along the lines of
set -e for i in *.svg; do mv $i $i.bak sed 's/style="fill:#b9b9b9;fill-opacity:0.0000000;/style="fill:none;/g' < $i.bak > $i done
-trent
Hi Trent,
Thanks also. Oddly I don't have ps2eps on my system, only ps2epsi. But I might use your suggestion to remove transparency with a script.
Cheers, Chris
Trent Buck wrote:
The particular sample you sent renders OK as eps using the following command:
inkscape -p '> pd_cfg.ps' pd_cfg.svg ps2eps -l -f pd_cfg.ps || ps2epsi pd_cfg.ps pd_cfg.eps
The only problem I noticed was that the rectangles in the flow chart are grey. This is because the rectangle borders have a fill of b9b9b900 (i.e. transparent grey). When printing, all alpha channels get flattened to FF (i.e. solid).
The basic rule is: IF EXPORTING TO PS/EPS, DON'T USE ALPHA.
You can write a script to remove the transparent grey fill from SVG images, along the lines of
set -e for i in *.svg; do mv $i $i.bak sed 's/style="fill:#b9b9b9;fill-opacity:0.0000000;/style="fill:none;/g' < $i.bak > $i done
-trent
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Quoth Chris Pickett on or about 2004-09-29:
Thanks also. Oddly I don't have ps2eps on my system, only ps2epsi. But I might use your suggestion to remove transparency with a script.
ps2epsi is part of gs (ghostscript). ps2eps is a separate application: http://www.ipv6.tm.uka.de/~bless/ps2eps
I think there's also a program called pstoeps, which is packaged with some LaTeX distros. They all do much the same thing -- add a bounding box and a preview raster.
-trent
participants (4)
-
bulia byak
-
Chris Pickett
-
Jamie Walton
-
Trent Buck