Mobile app version of vmapp.org
Login or Join
Frith110

: Is it possible to convert PostScript to SVG? (Inkscape) Is it possible to convert a PostScript file to SVG? Based on an answer in Tex.SE, I tried to use inkscape: inkscape test.ps --export-inkscape-svg=test.svg

@Frith110

Posted in: #Fonts #ImageFormat #Inkscape #Svg

Is it possible to convert a PostScript file to SVG?

Based on an answer in Tex.SE, I tried to use inkscape:

inkscape test.ps --export-inkscape-svg=test.svg


This indeed produced an SVG file, but changed the font and removed the spacing between letters. As a minimal working example, I created a PostScript file that includes text only (although my original files contains both text and graphics). The following image shows the PostScript file (top) and the resulting SVG file (bottom):



What is the correct way to convert PS to SVG?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Frith110

3 Comments

Sorted by latest first Latest Oldest Best

 

@BetL875

With help of pstoedit:

barcode -e ean -b 4003994155486 | pstoedit -q -f fig | fig2dev -L svg


In this example barcode outputs PostScript. Then pstoedit takes it and quetly (-q) converts into fig code, which is then converted into SVG by fig2dev.

10% popularity Vote Up Vote Down


 

@Heady304

I would recommend opening the PostScript file in Adobe Illustrator, which laps up EPS files like mother's milk and has an SVG export function.

1. Import the element(s) or open them directly (EPS)
2. Remember to select the option "show transparency Grid" under VIEW if you want transparent background.
3. Save As - Choose SVG

I would assume you are using the SVG for the web - keep the file gamut/color settings in RGB and set the resolution of the document to screen rather than print resolutions in Raster Settings (In Effects)

The fact that these settings are in just about every corner of the app is part of what makes Adobe so absurd.

10% popularity Vote Up Vote Down


 

@Megan533

Sorry - this will not answer your question:
"What is the correct way to convert PS to SVG? "

There is no "correct way". There are "possible ways". It is a too complicated World this one.

as I mentioned in the comment, I'd try using Inkscape myself. You did hit a problem in the program - let me ask you: do your PS file renders properly in other places, besides where you create it? Can you attach the minimalist file to the question?

Now, another way to try: ghostscript is a powerfull postscript which has a "ps-to-ps" mode which simplifies Postscritp files, in order to get them more "simple" for other programs. If you don't have it already, I suggest you get it.

It can output SVG - but you will know if your file renders properly inside it (with spacing and font), and second, you can use Ghostscript's "ps2ps" mode to create a secondary postscript file you can try importing into inkscape. This has a chance to succeed, since it should handle less used, or non-standard, text options that Inkscape is failing to grasp.

Ghostscript itself might be quite "rough" to use - it is a developer's tool, not a designer's one (it is even used directly as Printer driver for some Operating Systems) , so you might need to dig a little bit into its documentation (or ask again) to get the postscript-to-postscript part working. Getting the "gsview" companion program, which gives Postscript a Window of sorts might help as well.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme