[solved] How to convert EPS to SVG with Inkscape command line?

Post questions on how to use or achieve an effect in Inkscape.
theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

[solved] How to convert EPS to SVG with Inkscape command line?

Postby theozh » Mon Nov 21, 2016 8:51 pm

Hello, I tried to find a way to import an EPS file and convert it to SVG.
It works manually, however, I would like to use the command line without opening the GUI (this should be the option -z ?!)
I thought it should work with:

Code: Select all

inkscape.exe -z -f "Input.eps" -l "Output.svg"

However, no output is created.
What am I possibly doing wrong?
Last edited by theozh on Fri Dec 02, 2016 3:35 pm, edited 3 times in total.

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: How to convert EPS to SVG with Inkscape command line?

Postby theozh » Mon Nov 21, 2016 10:27 pm

...it's me again.
Sorry, obviously some paths were wrong.
Getting an error message from Inkscape "File not found... " would have been nice. Anyway...

Code: Select all

inkscape.exe -z -f "Input.eps" -l "Output.svg"
works as expected, as far as I have tested.

As this works, this basically answers an older question of mine whether there is a working SVG-Printer around which basically "prints" usable SVG files from any application.
The procedure is somewhat "crazy", since it prints a PS which is converted to EPS with subsequent correction of the bounding box which is then converted with Inkscape to SVG. However, after the lengthy installation of all necessary components it is as easy as printing a page to a printer. The good thing is: at the same time I get also an EPS and PDF file additionally to the SVG. If anybody is interested how this works I can give more details.
Win7/64, Inkscape 0.92.2

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: How to convert EPS to SVG with Inkscape command line?

Postby theozh » Wed Nov 23, 2016 2:44 am

No, it's not solved :-(
Some fonts are changed into strange/wrong symbols, etc., so basically an unusable document.
However, manual importing a PDF with Poppler seems to be ok.
As far as I understand Poppler converts fonts to paths?!
How do I enforce to use Poppler with the command line? Couldn't find yet the necessary parameter.
Win7/64, Inkscape 0.92.2

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: How to convert EPS to SVG with Inkscape command line?

Postby theozh » Fri Dec 02, 2016 3:35 pm

Well, the question according to the post title is solved.
The command line conversion seems to work :-)

However, the problem of the incorrect representation of the imported EPS has a different reason:
The EPS under test uses a Symbol-Font which uses "Windows Latin (ANSI)" encoding.
Obviously, Inkscape only works with Unicode-Fonts as input.

This brings me to the question of my other post:
How to handle non-Unicode fonts in Inkscape?
Win7/64, Inkscape 0.92.2


Return to “Help with using Inkscape”