Convert SVG to PDF using GhostScript / GhostPDL?

Question:
You can convert SVG to PDF using GhostPCL, for example:

gsvg.exe -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=my.pdf t1.svg 

The difficulty is getting gsvg.exe ...
I managed to find the source from:
http://svn.ghostscript.com/ghostscript/trunk/
and it is built and compiled, and it works great.

However, when I go to http://svn.ghostscript.com , it says:

SVN is canceled, Ghostscript is now running and related projects only in git repositories, see http://git.ghostscript.com

So, I tried to get the latest version by downloading from git repository

 git clone http://git.ghostscript.com/ghostpdl.git 

It built perfectly, but gsvg seems to be gone.

Unfortunately, he is lacking in the documentation department.
Does anyone know if this feature has been integrated, removed or relocated otherwise?

If it has been integrated, how can I convert svg to pdf in the new version (using ghost *)?

PS:
Yes, I know that I can do this using inkscape or rsvg-convert, but they do not work fine for my SVGs (rsvg-convert removes all text), inkscape provides low quality svg conversion. CairoSVG seems to be the same as rsvg-convert.

Only ghostsvg works as needed.

0
source share
1 answer

The SVG input (gsvg) is deprecated and removed from Ghostscript. It never worked well, and there was not enough interest in updating and maintaining it.

If you are really desperate, you can probably take the gsvg sources and stick them together with the current graphics library and output devices, nothing has changed in the Ghostscript API, so all this should work, but the directory structure has been redesigned and modified files make files, so its not going to be easy.

+1
source

All Articles