Inkscape not terminating when executed via subprocess in Python

33 views Asked by At

I'm encountering a problem when trying to execute Inkscape via Python's subprocess module. Specifically, I'm attempting to convert a PDF file to SVG using the following command:

import subprocess
command = ['inkscape', '--export-type=svg', 'file.pdf']
subprocess.run(command)

I've also noticed that the process persists in the task manager even after the script has forzed to finish (without create the svg file).

Could anyone provide insights or suggestions on why this might be happening and how I can resolve it?

0

There are 0 answers