unattended command-line operation?

Post questions on how to use or achieve an effect in Inkscape.
simonw
Posts: 4
Joined: Tue Jul 30, 2013 2:46 pm

unattended command-line operation?

Postby simonw » Mon Sep 30, 2013 6:26 am

Hi folks,

I would like to use inkscape to batch process some pdfs, but after much fiddling around I can't find workable solution. The workflow I would like to use is:

1. use pdftk to split my pdf into individual (pdf) pages
2. use inkscape to delete a specific element from each (pdf)page
3. join the pages back together again

I can get inkscape to perform the operation I need with a command like `inkscape pg_0001.pdf --select=<object_id> --verb EditDelete --verb FileSave --verb FileClose`. However, this won't work unattended, because I have to show the GUI and manually OK several dialogs during the process.

Is there any way around this? Can I suppress the dialogs, and auto-accept the default options? Is there a better way to achieve my goals?

I would greatly appreciate any advice or suggestions.

Thanks!

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: unattended command-line operation?

Postby hulf2012 » Mon Sep 30, 2013 12:41 pm

Hello,
Sorry that kind of task is too big for me:

You can consult here:
http://wiki.inkscape.org/wiki/index.php ... nd_line.3F

And here:
http://tavmjong.free.fr/INKSCAPE/MANUAL ... neral.html

There is the option: -z, --without-gui, but i haven't used it
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

simonw
Posts: 4
Joined: Tue Jul 30, 2013 2:46 pm

Re: unattended command-line operation?

Postby simonw » Mon Sep 30, 2013 12:48 pm

thanks for the response. the `-z` / `--without-gui` options disables all the `--verb` commands, so it's a no-go, I'm afraid. i've read all the docs, man pages, and all the web pages i could find, and that's why i'm posting here now. i suspect perhaps that what i'm trying to achieve can't be done, but it makes me wonder what the inkscape cli is useful for in that case.

cheers anyway!

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: unattended command-line operation?

Postby hulf2012 » Mon Sep 30, 2013 3:57 pm

Other idea: Talk with the developers in Launchapad, or the mailing list.
In this forum I see more related to user-to-user help, or volunteers
I think the links are in the homepage of Inkscape.
... And another idea: I think that this is a clever hack, although maybe it's not related:
http://www.janthor.com/sketches/index.p ... scape.html
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.


Return to “Help with using Inkscape”