export files with CLI

Previous topic - Next topic

roipoussiere

Hello,
I need to convert .ai (Adobe Illustrator) files to .svg with a batch processing, in order to edit them in Inkscape.

With Inkscape CLI, I can do this :
inkscape -z -l drawing.svg drawing.ai
The problem is that Inkscape doesn't convert layers and groups informations : all elements are ungrouped and appears at the same level... but I need these groups.

Then I discovered Scribus, I tried to import a .ai file and export it in .svg, and surprise ! It works very well, I get the groups informations ! :-) However I do this with the GUI. I would like to know if there are a way to do it with the CLI.

I know I can do that :
scribus -ns -g drawing.ai
But is there a way to export the file in a desired extension?

Note that I also tried to convert ai to svg with others tools such as ImageMagick, GhostScript, Uniconvertor, ... but they doesn't work very well.

Thanks you !

Roipou.

Kunda