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

Asked by Stephen

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

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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:
https://inkscape.org/doc/inkscape-man.html

Revision history for this message
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.