pdfwin problems surpressing PageMode and Toolbar

8 views
Skip to first unread message

Stef Mientki

unread,
Dec 16, 2009, 5:19:50 PM12/16/09
to wxpytho...@googlegroups.com
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

Robin Dunn

unread,
Dec 17, 2009, 1:12:19 PM12/17/09
to wxpytho...@googlegroups.com

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.


--
Robin Dunn
Software Craftsman
http://wxPython.org

Stef Mientki

unread,
Dec 20, 2009, 8:19:02 AM12/20/09
to wxpytho...@googlegroups.com
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

David Hughes

unread,
Dec 20, 2009, 12:20:17 PM12/20/09
to wxpytho...@googlegroups.com
Stef Mientki wrote:
Robin Dunn wrote:
  
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.....
      
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


Reply all
Reply to author
Forward
0 new messages