[python-win32] Acrobat Reader

Metz, Bobby W, WCS bwmetz at att.com
Thu Apr 6 03:42:54 CEST 2006


FYI

>From the Adobe developer guide...

"Use of the ActiveX(r)Control or Netscape plug-in to display a PDF file
in an external application besides Internet Explorer or Netscape. The
methods used by Acrobat to display a PDF file in Netscape and Internet
Explorer are intended only for use with these browsers. Use of the
ActiveX Control and Netscape plug-in installed by Adobe Reader is not
licensed to other applications. Development with these interfaces is not
supported and no documentation is available."

This is the AcroPDF.PDF class as best I can tell.  There's another
dispatchable 7.0 class that doesn't crash Python called
AcroExch.Document but I can't find any documentation on it's methods and
Open and FileOpen as used by other Acro classes don't respond.

Bobby

-----Original Message-----
From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org] On Behalf Of Tim Roberts
Sent: Wednesday, April 05, 2006 11:39 AM
To: python-win32 at python.org
Subject: Re: [python-win32] Acrobat Reader

On Wed, 5 Apr 2006 09:15:16 +0200, "Mirco Furlan (Visionee)"
<mirco.furlan at visionee.com> wrote:

>I'm trying to use an instance of Adobe Acrobat Reader. I can
successfull
>create an instance with win32com.client.Dispatch, 
>

How did you do that?  To my knowledge, the only way to do that is to use
AcroExch.App, which is only exposed by the full Acrobat product, not the
Reader.  As far as I know, the standalone Reader application simply
cannot be controlled via COM.  There is an ActiveX control, but that's a
bigger deal.

>but when I try to load a
>document, python crashes! I had version 7 of Reader and I tried to
install
>an older version (6.1), but same result. I would use it to print pdf
>documents with its methods (in particular PrintPages(..) ). Is there
some
>known problem? Any suggestion or alternative solution will appreciate.
>

The Acrobat ActiveX wrapper in wxPython explodes with version 7, deep
within Acrobat, where it has never done so before.  The problem has not
been isolated yet.

The only reliable and portable way to do what you ask is to fire up the
reader from a command line.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
Python-win32 mailing list
Python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32


More information about the Python-win32 mailing list