[CentralOH] Printing PDF files from Python

Eric Floehr eric at intellovations.com
Thu May 26 16:23:14 CEST 2011


I would look at Poppler (http://poppler.freedesktop.org/) and the
python-poppler bindings.

Here's an example of using it in QT:

http://code.google.com/p/python-poppler-qt4/

http://doc.qt.nokia.com/qq/qq27-poppler.html (C++ but concepts the same)

<http://doc.qt.nokia.com/qq/qq27-poppler.html>Here is a recipe to use
poppler within wxwindows:

http://code.activestate.com/recipes/577195-wxpython-pdf-viewer-using-poppler/

<http://code.activestate.com/recipes/577195-wxpython-pdf-viewer-using-poppler/>
-Eric


On Thu, May 26, 2011 at 9: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
> _______________________________________________
> CentralOH mailing list
> CentralOH at python.org
> http://mail.python.org/mailman/listinfo/centraloh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/mailman/private/centraloh/attachments/20110526/c3932ff4/attachment.html>


More information about the CentralOH mailing list