[Tutor] Load PDF

Pepe Pena jramirez08063 at yahoo.com
Mon Oct 3 12:41:30 CEST 2005


Hello,
 
I am attempting to load a pdf file programatically within Adobe Reader using the Adobe Acrobat 7.0 Browser Control Type Library.  If I run this code PythonWin terminates abruptly, can anyone suggest any changes I should make to the following lines of code, thanks.
 
import win32com.client
test = win32com.client.Dispatch("AcroPDF.PDF.1")
test.LoadFile("D:\\sql.pdf")



		
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20051003/ce2365b2/attachment.htm


More information about the Tutor mailing list