[solved] Opening PDF unattendedly (from cmdline)

Post questions on how to use or achieve an effect in Inkscape.
rubyd
Posts: 3
Joined: Tue Sep 16, 2008 9:45 pm

[solved] Opening PDF unattendedly (from cmdline)

Postby rubyd » Tue Sep 16, 2008 10:26 pm

Hi all,

is this possible? I'd like to open PDF files and save them to SVG. I have done this successfully with Inkscape v0.46 on Ubuntu, using the GUI. But I'd like to do the same task by script, without attending the process.

I already tried the following:

Code: Select all

inkscape -z -f a.pdf -l a.svg

(a.pdf a really simple PDF file created by exporting from Inkscape.)
But this results in a screenful of glib error messages:

Code: Select all

...
(inkscape:12589): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion `quark > 0' failed
(inkscape:12589): glibmm-CRITICAL **: Glib::ObjectBase* Glib::wrap_create_new_wrapper(GObject*): assertion `wrap_func_table != 0' failed
(inkscape:12589): glibmm-WARNING **: Failed to wrap object of type 'GtkHButtonBox'. Hint: this error is commonly caused by failing to call a library init() function.

Presumably because Inkscape attempts to open the "PDF Import Settings"-Dialog even though I put in the -z flag to suppress the GUI.
Is there a way for me to provide the necessary settings (page selection, text handling etc.) by commandline parameters?

I'd be grateful for any suggestions or thoughts.
Thanks in advance
----Daniel

bbyak
Posts: 64
Joined: Sun Oct 07, 2007 4:53 am

Re: Opening PDF unattendedly (from cmdline)

Postby bbyak » Wed Sep 17, 2008 9:37 am

this is fixed in svn some time ago

rubyd
Posts: 3
Joined: Tue Sep 16, 2008 9:45 pm

Re: Opening PDF unattendedly (from cmdline)

Postby rubyd » Wed Sep 17, 2008 5:11 pm

Ah! Thanks for the pointer, I'll give the devel-version a try.

Cheers
----Daniel

rubyd
Posts: 3
Joined: Tue Sep 16, 2008 9:45 pm

Re: Opening PDF unattendedly (from cmdline)

Postby rubyd » Wed Sep 17, 2008 8:42 pm

Confirming:
Works with the current snapshot as of today (2008-09-17, http://inkscape.modevia.com/svn-snap/inkscape-19869.tar.bz2).

Thanks a lot!
----Daniel


Return to “Help with using Inkscape”