[CentralOH] Printing PDF files from Python

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


Of course after I send that I realize you are talking Windows...  Sorry, I
have a Linux bias :-).

For Windows, you might see if there is an OLE container or something for
Adobe?  I'm not as familiar with current Windows state-of-the-art (even
though I did C++ and MFC for a number of years long ago!).

-Eric


On Thu, May 26, 2011 at 10:23 AM, Eric Floehr <eric at intellovations.com>wrote:

> 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
>>
>
>
> _______________________________________________
> 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/e3387b13/attachment.html>


More information about the CentralOH mailing list