[CentralOH] Adobe and win32com

Mark Erbaugh mark at microenh.com
Mon Feb 14 20:53:01 CET 2011

On Feb 14, 2011, at 1:24 PM, James -- Atlantix wrote:

> I'm having trouble displaying an Adobe .pdf file using win32com. I can open it, but not display it. If anyone has experience with this, please could you point me to a website or other documentation reference. I have scoured the web and have not been able to find a definitive reference on this. In addition, I have used win32com extensively with Excel & Outlook, and have had a great deal of success, but Adobe is being stubborn . . .  Thanks, James
> _______________________________________________
> CentralOH mailing list
> CentralOH at python.org
> http://mail.python.org/mailman/listinfo/centraloh


I've not used win32com, but I have used Adobe Reader to display PDF data by saving the PDF data to a disk file and spawning a new process to launch Adobe Reader passing the file name as a parameter.  I think I found I had to pass a blank file name between the Reader command and my file name to get Reader to see it. Perhaps that was needed as Reader assumed that the first things after the command were flags. Here are a couple of Reader flags that may be useful:

/n - open a new window rather than reusing an existing one
/s - bypass splash screen

I also found that the default install of Reader does not add it's location to the PATH variable so I had to use a full path to launch it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/mailman/private/centraloh/attachments/20110214/1b344484/attachment.html>

More information about the CentralOH mailing list