Invoking CutePDF from within Python

Tim Golden mail at timgolden.me.uk
Fri Feb 13 15:54:33 CET 2009


python at bdurham.com wrote:
> Tim,
> 
>> FWIW, I usually generate PDFs by printing to a Postscript printer (some random Apple Laserthingy) and then using Ghostscript to do the conversion. I'm happy to post if you're interested.
> 
> If its not too much bother, I would be interested in learning how you're
> interfacing to Python to Ghostscript.

Really boring, I'm afraid. Just popen and an .exe:

http://pastebin.com/m461bf8f2

(There are a few dependencies I haven't shown but I
hope the approach is obvious; happy to explain / supply
details)

TJG



More information about the Python-list mailing list