joi, 6 ianuarie 2011

Convert EPS to SVG

Although I use Inkscape and Scribus and both have the option to import EPS files, they do a lame job: Inkscape converts the EPS to a static image and Scribus converts a very small amount from the original file.
Therefore I found that a detour to PDF helps in achieving better results. The key program here is GhostScript. The command is:

"c:\program files\gs\gs9.00\bin\gswin32c.exe" -sDEVICE=pdfwrite -sPAPERSIZE=a3 -o c:\tmp\vector.pdf c:\tmp\vector.eps

Some values for PAPERSIZE argument:
PAPERSIZEX inchesY inchesX cmY cm
a033.055646.777883.9611118.816
a123.388933.055659.407883.9611
a216.527823.388941.980659.4078
a311.694416.527829.703941.9806
a48.2638911.694420.990329.7039
a55.847228.2638914.851920.9903
letter8.51121.5927.94
legal8.51421.5935.56

After the file is in PDF format, Inkscape does a good job importing it. After import I save the result as a plain SVG to edit SVG file with Scribus. The problem that bothers me so far is that after conversion from PDF the shapes lose gradient information.

0 comentarii: