pdfwin problems surpressing PageMode and Toolbar

hello,

On some windows system it's impossible to surpress toolbar and pagemode of the activeX pdfwindow.

It works ok on Adobe 5 / IE6 /wxPython '2.8.7.1 (msw-unicode)' / Python 2.5

but not on:
Adobe 8 / IE 6.0 / wxPython '2.8.7.1 (msw-unicode)' / Python 2.5

The following error occurs :

Traceback (most recent call last):
  File "TO_aggregatie.py", line 591, in _Launch_2
    self.PlugIn_App = MA.App_Form ( self.App_Dock, self.Ini_File )
  File "D:\Data_Python_25\TO_aggregatie\TO_apps\TOA_Patient.py", line 68, in __init__
    self.PDF.setPageMode ( 'none' )
  File "P:\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\lib\pdfwin.py", line 288, in setPageMode
    raise PDFWindowError()
PDFWindowError: A PDF must be loaded before calling this method.

Waiting for 100 seconds doesn't solve the problem.

Any suggestions ?

thanks,
Stef Mientki

You might want to try the new pdfwin module in a newer release of wxPython. In the old one if the acrobat version is >= 7 then it cheats and loads the PDF in a IE activeX control instead of using PDF directly. This is because there was some unknown thing missing from the container provided by the older activeX module in wxPython that we could never figure out. The newer release includes a new ActiveX base implementation based on comtypes and ctypes.

···

On 12/16/09 2:19 PM, Stef Mientki wrote:

hello,

On some windows system it's impossible to surpress toolbar and pagemode
of the activeX pdfwindow.

It works ok on Adobe 5 / IE6 /wxPython '2.8.7.1 (msw-unicode)' / Python 2.5

but not on:
Adobe 8 / IE 6.0 / wxPython '2.8.7.1 (msw-unicode)' / Python 2.5

The following error occurs :

Traceback (most recent call last):
   File "TO_aggregatie.py", line 591, in _Launch_2
     self.PlugIn_App = MA.App_Form ( self.App_Dock, self.Ini_File )
   File "D:\Data_Python_25\TO_aggregatie\TO_apps\TOA_Patient.py", line
68, in __init__
     self.PDF.setPageMode ( 'none' )
   File
"P:\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\lib\pdfwin.py", line
288, in setPageMode
     raise PDFWindowError()
PDFWindowError: A PDF must be loaded before calling this method.

Waiting for 100 seconds doesn't solve the problem.

Any suggestions ?

--
Robin Dunn
Software Craftsman

Robin Dunn wrote:

  

hello,

On some windows system it's impossible to surpress toolbar and pagemode
of the activeX pdfwindow.

It works ok on Adobe 5 / IE6 /wxPython '2.8.7.1 (msw-unicode)' / Python 2.5

but not on:
Adobe 8 / IE 6.0 / wxPython '2.8.7.1 (msw-unicode)' / Python 2.5

The following error occurs :

Traceback (most recent call last):
   File "TO_aggregatie.py", line 591, in _Launch_2
     self.PlugIn_App = MA.App_Form ( self.App_Dock, self.Ini_File )
   File "D:\Data_Python_25\TO_aggregatie\TO_apps\TOA_Patient.py", line
68, in __init__
     self.PDF.setPageMode ( 'none' )
   File
"P:\Python\Lib\site-packages\wx-2.8-msw-unicode\wx\lib\pdfwin.py", line
288, in setPageMode
     raise PDFWindowError()
PDFWindowError: A PDF must be loaded before calling this method.

Waiting for 100 seconds doesn't solve the problem.

Any suggestions ?
    
You might want to try the new pdfwin module in a newer release of wxPython. In the old one if the acrobat version is >= 7 then it cheats and loads the PDF in a IE activeX control instead of using PDF directly. This is because there was some unknown thing missing from the
  

Thanks Robin,

I upgraded from P2.5 / wxPython 2.8.7.1 tp
P2.6 / wxPython 2.8.10.1
but the problem didn't solve.
Also the wxPython demo showed an error.

I've to admit that on this test PC, 3 different pdf-readers were installed:
Adobe 5 (because it has a good mozilla plugin)
Foxit , the default pdf reader (because it's agood stand alone reader)
Adobe 8 ( because it's the compagny standard, and therfor forced installed)

After removing all pdf readers, and installing Adobe 8 only,
every thing was solved.

cheers,
Stef

···

On 12/16/09 2:19 PM, Stef Mientki wrote:
container provided by the older activeX module in wxPython that we could never figure out. The newer release includes a new ActiveX base implementation based on comtypes and ctypes.

Stef Mientki wrote:

Robin Dunn wrote:

hello,
On some windows system it's impossible to surpress toolbar and pagemode
of the activeX pdfwindow.
It works ok on Adobe 5 / IE6 /wxPython '2.8.7.1 (msw-unicode)' / Python 2.5
but not on:
Adobe 8 / IE 6.0 / wxPython '2.8.7.1 (msw-unicode)' / Python 2.5.....
You might want to try the new pdfwin module in a newer release of wxPython....

Thanks Robin,
I upgraded from P2.5 / wxPython 2.8.7.1 tp
P2.6 / wxPython 2.8.10.1
but the problem didn't solve.
Also the wxPython demo showed an error.
I've to admit that on this test PC, 3 different pdf-readers were installed:
Adobe 5 (because it has a good mozilla plugin)
Foxit , the default pdf reader (because it's agood stand alone reader)
Adobe 8 ( because it's the compagny standard, and therfor forced installed)
After removing all pdf readers, and installing Adobe 8 only,
every thing was solved.
Let's hope your company sticks with Adobe Reader 8 as its standard because, unfortunately, if Adobe Reader 9 is used with pdfwin, it causes a Python crash - on exit, if the pdf file is still open, when using wxPython normally, but immediately if using py2exe -- Regards, David Hughes Forestfield Software
···

:frowning: