Allow me to strongly recommend the upgrade to Acrobat Reader 7. I think
the 5 and 6 versions were mostly dog poop, but in version 7 Adobe has
finally reorganized their startup procedure. The very first time that
you start the Reader, it takes tens of seconds to categorize the
plugins, but after that, it comes up in small integer seconds (like "3").
This is the first Acrobat upgrade I've recommended to my people since
version 4.
···
On Wed, 6 Apr 2005 12:39 +0100 (BST), dfh@forestfield.co.uk (David Hughes) wrote:
>
In an application where a user's PDF report can be previewed using Acrobat reader in a wx.PDFWindow, if any changes are required, it is necessary to force Acrobat to release the PDF file before it can be updated. I do this using the sequence of calls:
pdfwin.LoadFile(reportfile)
pdfwin.LoadFile(blankfile)
pdfwin.LoadFile([modified]reportfile)
However, this causes Acrobat reader to completely close down and re-open every time LoadFile is called, taking tens of seconds each time (A new PID can be seen in Windows Task Manager every time this happens).
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
May I hijack this thread and ask what is a wxPDFWindow? I looked on the wxWidgets docs and it isn't there. I tried:
pmcnett@sol:~ $ python
Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> help(wx.PDFWindow)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'PDFWindow'
Is this something Windows-specific? I'm still looking for a cross-platform way to view, navigate, and optionally print pdf files from within wx.
···
--
pkm ~ http://paulmcnett.com
*From:* Tim Roberts <timr@probo.com>
*To:* wxPython-users@lists.wxwidgets.org
*Date:* Wed, 06 Apr 2005 11:22:01 -0700
>
>In an application where a user's PDF report can be previewed using
>Acrobat reader in a wx.PDFWindow, if any changes are required, it is
>necessary to force Acrobat to release the PDF file before it can be
>updated. I do this using the sequence of calls:
> pdfwin.LoadFile(reportfile)
> pdfwin.LoadFile(blankfile)
> pdfwin.LoadFile([modified]reportfile)
>
>However, this causes Acrobat reader to completely close down and
re-open >every time LoadFile is called, taking tens of seconds each
time (A new PID >can be seen in Windows Task Manager every time this
happens).
Allow me to strongly recommend the upgrade to Acrobat Reader 7. I think
the 5 and 6 versions were mostly dog poop, but in version 7 Adobe has
finally reorganized their startup procedure. The very first time that
you start the Reader, it takes tens of seconds to categorize the
plugins, but after that, it comes up in small integer seconds (like
"3").
This is the first Acrobat upgrade I've recommended to my people since
version 4.
--
I should have emphasised that the problems I reported are with Acrobat
Reader 6 (5 seems to be OK). Unfortunately version 7 doesn't work yet with
wx.PDFWindow. I believe Robin is aware of this, but it must still be on
his (no doubt, lengthy) list of things to do.
Regards,
David Hughes
Forestfield Software
www.foresoft.co.uk
···
On Wed, 6 Apr 2005 12:39 +0100 (BST), dfh@forestfield.co.uk (David > Hughes) wrote:
*From:* Paul McNett <p@ulmcnett.com>
*To:* wxPython-users@lists.wxwidgets.org
*Date:* Wed, 06 Apr 2005 11:32:03 -0700
May I hijack this thread and ask what is a wxPDFWindow? I looked on the
wxWidgets docs and it isn't there. I tried:
pmcnett@sol:~ $ python
Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> help(wx.PDFWindow)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'PDFWindow'
Is this something Windows-specific? I'm still looking for a
cross-platform way to view, navigate, and optionally print pdf files
from within wx.
Have a look at the wxPython demo. It's 'Activex_PDFWindow' under 'More
Windows/Controls'. You can see from the code how it's accessed, but
basically, you need:
from wx.lib.pdfwin import PDFWindow
Regards,
David Hughes
Forestfield Software
www.foresoft.co.uk