[reportlab-users] Printing through Adobe Reader - shutdown
Michael Hipp
Michael at Hipp.com
Thu Jan 4 14:36:02 EST 2007
Resurrecting an old thread...
Does anyone know if it's possible to redirect the printout to a different Win
printer using the 'ie' method show below? As written it always goes to the
default printer.
<dreaming>
I really wish there were a lightweight, robust, pythonistic way to print pdfs
directly rather than using these hired henchmen. Anyone have any ideas?
</dreaming>
Thanks,
Michael
Reed O'Brien wrote:
> or instantiate ie (privided by the plugin) print quit...
>
> from win32com.client import Dispatch
>
> ie = Dispatch("InternetExplorer.Application")
> ie.Navigate(path_to_pdf)
> ie.Document.printPages(1,3)
> ie.Document.printAll()
> ie.Quit()
>
> Works with Acrobat reader 7 as tried above.
More information about the reportlab-users
mailing list