[python-win32] Load PDF
Mark Hammond
mhammond at skippinet.com.au
Mon Oct 3 23:19:04 CEST 2005
This crash happens deep inside Acrobat itself and seems like a bug in that
software.
Running the following VBScript code produces the exact same error for me:
set test = CreateObject("AcroPDF.PDF.1")
test.LoadFile("filename.pdf")
Mark
-----Original Message-----
From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org]On Behalf Of Pepe Pena
Sent: Monday, October 03, 2005 8:33 PM
To: python-win32 at python.org
Subject: [python-win32] Load PDF
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/python-win32/attachments/20051004/f2d39da8/attachment.htm
More information about the Python-win32
mailing list