using inkscape without GUI

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
julius_celia

using inkscape without GUI

Postby julius_celia » Tue Sep 21, 2010 10:56 pm

Hi,

I would like to use inkscape in command line in a python script.
What I would like to do is to delete a layer of an svg file, so the command I use is:

Code: Select all

inkscape file.svg  --verb LayerDelete --verb FileSave --verb FileClose

which works well. I only have a problem when I want to run inkscape without a GUI (which is usefull in the script if I want to do several times this job). If I do

Code: Select all

inkscape file.svg -z --verb LayerDelete --verb FileSave --verb FileClose

nothing happens to the file, no layer is deleted.

Does anyone know why it doesn't work and has an idea?

Cheers

julius_celia

Re: using inkscape without GUI

Postby julius_celia » Wed Sep 22, 2010 1:09 am

Sorry i forgot to mention, I'm using Inkscape 0.47 with Ubuntu 10.04 (Lucid Lynx).
Regards

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: using inkscape without GUI

Postby ~suv » Wed Sep 22, 2010 3:14 am

The -z (--without-gui) option disables the --verb parms. Mentioned in
Verbs can also not be used in 'shell' mode.

julius_celia

Re: using inkscape without GUI

Postby julius_celia » Wed Sep 22, 2010 10:07 pm

OK, thanks a lot for your answer! I guess i 'll have to find a way to suppress the layers in the XML code itself...


Return to “Discuss Software Issues”