Creating a new Inkscape file and calling an extension externally, as in through running a script without opening Inkscape

Asked by Stephen on 2018-06-08

I was wondering if it's possible, and if it is, how to go about doing such a task.

I want to run a script externally that will create a new Inkscape file, then run an extension I created for within the file, then save the file and export it as a .pdf.

Essentially, the user would just run the script and it would output a .pdf to a folder. This would also be accomplished without running Inkscape, so say a server could call this script and then export the file created for download.

Is this possible? If this is possible, how would I accomplish it?

Question information

English Edit question
Inkscape Edit question
No assignee Edit question
Last query:
Last reply:
Hachmann (marenhachmann) said : #1

I don't understand - Inkscape always needs to run to create its files and run extensions ?!?

However, you can create and modify SVG files without Inkscape.

Some Inkscape operations are available without starting a graphical user interface (the file conversion and export functions). But Inkscape is still required to execute its own functions...

Look into the man page for more info:

Mc (mc...) said : #2

- creating a new file : -> copy default.svg
- apply an extension -> ok, extensions can be run independentely
- convert to pdf -> I think you need gui for that *with inkscape.* Might be possible with other tools.

Can you help with this problem?

Provide an answer of your own, or ask Stephen for more information if necessary.

To post a message you must log in.