[python-win32] R: Acrobat Reader

Mirco Furlan (Visionee) mirco.furlan at visionee.com
Thu Apr 6 08:45:13 CEST 2006


Thank's to all. I think I continue to use an IE instance, load the pdf as
url and so with a reference to IE.Document I have my pdf document to
manipulate (this time my interest is over all the printPages() function)

-----Messaggio originale-----
Da: python-win32-bounces at python.org [mailto:python-win32-bounces at python.org]
Per conto di Metz, Bobby W, WCS
Inviato: giovedì 6 aprile 2006 3.43
A: python-win32 at python.org
Oggetto: Re: [python-win32] Acrobat Reader


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
_______________________________________________
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