view/operate pdf

this example tries to find adobe product, however I use foxit on ms
Windows, so I get
[msg]
  File "h:\sap-24\bin\lib\site-packages\wx-2.8-msw-unicode\wx\lib\pdfwin.py", li
ne 25, in get_acroversion
    adobesoft = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, r'Software\Adobe')
WindowsError: (2, '')
[/msg]

in other words,
first, this example does not work for other pdf viewer
second, is there a lib to do so? so that my app does not rely on
wether the user has installed a PDF viewer

thanx again

···

  4. Re: view/operate pdf (Werner F. Bruhin)
Message: 4
Date: Thu, 09 Apr 2009 10:29:43 +0200
From: "Werner F. Bruhin" <werner.bruhin@free.fr>
Subject: Re: [wxpython-users] view/operate pdf
To: wxpython-users@lists.wxwidgets.org
Message-ID: <49DDB1F7.7040707@free.fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

oyster wrote:
> I know we can view pdf via com on windows, but is there an example to show
> 1. user can pan/zoom the viewport
> 2. the python program can open the pdf and navigate to a given page, for example
> pdf=open('a.pdf')
> pdf.fit(HEIGHT)
> pdf.gopage(5)
>
I think the wxPython demo 'ActiveX_PDFWindow" shows how to do some of this.

Werner

What I have done is have a user setup option where the user has to enter
the path to whatever program they use to view PDF files. This approach
works regardless of the OS.

Mark

···

On Fri, 2009-04-10 at 14:57 +0800, oyster wrote:

this example tries to find adobe product, however I use foxit on ms
Windows, so I get
[msg]
  File "h:\sap-24\bin\lib\site-packages\wx-2.8-msw-unicode\wx\lib
\pdfwin.py", li
ne 25, in get_acroversion
    adobesoft = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, r'Software
\Adobe')
WindowsError: (2, '')
[/msg]

in other words,
first, this example does not work for other pdf viewer
second, is there a lib to do so? so that my app does not rely on
wether the user has installed a PDF viewer