Domanda

i'm using windows and want to subprocess princexml with python.

The docu says (http://www.princexml.com/doc/8.1/python/):

import subprocess

subprocess.call(["prince","foo.xml","bar.pdf"]);

I replaced "prince" with the path to my binary exe...and i have an foo.xml in the same directory. The window with the generator gives a little blink and that was it...no pdf was generated.

Even when i just use prince on the cmd with "prince foo.xml foo.pdf" nothing happens... Any help with that? Thanks a lot!

È stato utile?

Soluzione

I found it out by myself...it was the permission setting in windows...just install the engine to c:\users\somwhere and that it should be okay!

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top