Scribus Forums

Scribus => Beginner Talk => Topic started by: roipoussiere on October 07, 2015, 02:41:31 PM

Title: export files with CLI
Post by: roipoussiere on October 07, 2015, 02:41:31 PM
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.
Title: Re: export files with CLI
Post by: Kunda on October 07, 2015, 10:12:54 PM
Check out: http://wiki.scribus.net/canvas/Command_line_scripts

also post your question on the ML http://lists.scribus.net
lots of pythonistas on there