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