wxPython printing help

Tim Roberts timr at probo.com
Fri Aug 2 01:16:09 EDT 2002


donnal at donnal.net (Donnal Walter) wrote:

>CJ <cja at dqs.nwt> wrote:
>> iIs this even possible or am I wasting my time?
>
>As far as I can tell, printing from PDF is NOT easily accomplished
>with the wxPython printing framework. It certainly is not as easy as
>opening a .pdf file and asking it to print.

Actually, it is almost that easy, at least on Windows.  Assuming you have
Acrobat installed, you can use win32api.ShellExecute to launch your program
with the verb "print".  Acrobat should start, print, and exit.
--
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list