[python-win32] Print PDF

Gerdus van Zyl gerdusvanzyl at gmail.com
Sat Feb 2 23:53:01 CET 2008


Is there a way to print a PDF using the activeX control of Acrobat
Reader? I have seen the previous discussing on this on this list but
nothing seems to resolve if this is possible or not.

My code:
import win32com.client.dynamic
avdoc = win32com.client.Dispatch("AcroPDF.PDF.1")
pd = "C:\uxpython\fun\iac.pdf"
avdoc.LoadFile(pd)
print avdoc.GetVersions()
avdoc.printAll()

This does not have any effect, as in nothing is printed or displayed
but the call to GetVersions does return information.

Thanks,
Gerdus van Zyl


More information about the python-win32 mailing list