[CentralOH] Printing PDF files from Python
Kartic Krishnamurthy
kartic.krish at gmail.com
Thu May 26 17:46:52 CEST 2011
I thought about suggesting printing using the shell (or may be
win32api) and Google gave me this :
http://timgolden.me.uk/python/win32_how_do_i/print.html#shellexecute -
seems pretty elegant.
+Kartic
On Thu, May 26, 2011 at 6:35 AM, Mark Erbaugh <mark at microenh.com> wrote:
> I'm using the ReportLab library to generate PDF files from a Python application. Normally, I launch a native PDF viewer (Adobe Reader on Windows, Preview on Mac) and let the user print the document if they want. Is there a way to directly print the PDF file from the Python app? I could shell to the native reader, but it would be nice if I could keep this looking like it was "built-in" to the app, not a separate process.
>
> Thanks,
> Mark
More information about the CentralOH
mailing list