Hi,
I was wondering if it is possible to lead pdf files from Linux? I found that it is possible from Windows with wx.lib.pdfwin.
Thank you,
Judith
Hi,
I was wondering if it is possible to lead pdf files from Linux? I found that it is possible from Windows with wx.lib.pdfwin.
Thank you,
Judith
Google is your friend. Search on Google FIRST before asking any
questions.
Google search string: (use quotes as shown)
python "pdf library"
On Jul 2, 1:34 pm, Judith Flores <jur...@yahoo.com> wrote:
Hi,
I was wondering if it is possible to lead pdf files from Linux? I found that it is possible from Windows with wx.lib.pdfwin.
Thank you,
Judith
Judith,
I looked for a solution to this problem awhile ago. I could not find a nice way of loading a pdf file into a pdf reader. My solution was to look for standard readers in the standard locations and use the first one I came across. I believe I launched it using the system() call. The problem is that it may not be the reader the user likes to use.
Thanks,
Tom
On Fri, Jul 2, 2010 at 10:34, Judith Flores juryef@yahoo.com wrote:
Hi,
I was wondering if it is possible to lead pdf files from Linux? I found that it is possible from Windows with wx.lib.pdfwin.
Thank you,
Judith
–
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
Thank you Tom.
From: Tom Brown nextstate@gmail.com
To: wxpython-users@googlegroups.com
Sent: Sat, July 3, 2010 1:08:41 PM
Subject: Re: [wxPython-users] Loading pdf files in wxPython from Linux
Judith,
I looked for a solution to this problem awhile ago. I could not find a nice way of loading a pdf file into a pdf reader. My solution was to look for standard readers in the standard locations and use the first one I came across. I believe I launched it using the system() call. The problem is that it may not be the reader the user likes to use.
Thanks,
Tom
On Fri, Jul 2, 2010 at 10:34, Judith Flores juryef@yahoo.com wrote:
Hi,
I was wondering if it is possible to lead pdf files from Linux? I found that it is possible from Windows with wx.lib.pdfwin.
Thank you,
Judith
–
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
–
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
I actually looked in Google, I always do that first before posting in the help-list. But I only looked under wxpython.
Judith
----- Original Message ----
From: WinCrazy <pascor@verizon.net>
To: wxPython-users <wxpython-users@googlegroups.com>
Sent: Sat, July 3, 2010 10:25:00 AM
Subject: [wxPython-users] Re: Loading pdf files in wxPython from Linux
Google is your friend. Search on Google FIRST before asking any
questions.
Google search string: (use quotes as shown)
python "pdf library"
On Jul 2, 1:34 pm, Judith Flores <jur...@yahoo.com> wrote:
Hi,
I was wondering if it is possible to lead pdf files from Linux? I found that it is possible from Windows with wx.lib.pdfwin.
Thank you,
Judith
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
Wow, that's so helpful WinCrazy... why bother posting that?
Judith,
I looked into this a year ago, and there wasn't a easy out-of-the-box
way to display pdfs cross platform... bindings for poppler would be
really nice for wxpython (and qtpoppler is what i use in qt for this
kind of task).
The one thing you might be able to use without alot of time invested
is: http://www.swftools.org/ has a module named 'gfx' that I tested a
bit under windows that has a couple methods to render a page to an
image or bytestring which you can read into a wxImage or wxBitmap.
(the docs say this module is based on xpdf and the tutorial
The Python gfx module mentions building on *nix
i'm sure you can get it working.) One thing I discovered was that
they've misnamed one of the methods in the tutorial. it's actually
page.asImage() not page.getImage(). Sect 1.9 also may be of interest
if you want to handle the drawing operations yourself.
If you're only wanting to read/manipulate the pdfs, I've had good luck
with pypdf for splitting/merging pages and pdfminer can read a great
deal of the content itself. There's also used a command line utility
called htmltopdf which has an xml output option for the content
itself.
Hope this gives you an idea or two...
- michael
On Jul 4, 9:07 am, Judith Flores <jur...@yahoo.com> wrote:
I actually looked in Google, I always do that first before posting in the help-list. But I only looked under wxpython.
Judith
----- Original Message ----
From: WinCrazy <pas...@verizon.net>
To: wxPython-users <wxpython-users@googlegroups.com>
Sent: Sat, July 3, 2010 10:25:00 AM
Subject: [wxPython-users] Re: Loading pdf files in wxPython from LinuxGoogle is your friend. Search on Google FIRST before asking any
questions.Google search string: (use quotes as shown)
python "pdf library"
On Jul 2, 1:34 pm, Judith Flores <jur...@yahoo.com> wrote:
> Hi,> I was wondering if it is possible to lead pdf files from Linux? I found that it is possible from Windows with wx.lib.pdfwin.
> Thank you,
> Judith
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visithttp://groups.google.com/group/wxPython-users?hl=en
This thread has a few different approaches offered:
Che
On Fri, Jul 2, 2010 at 1:34 PM, Judith Flores <juryef@yahoo.com> wrote:
Hi,
I was wondering if it is possible to lead pdf files from Linux? I found that it is possible from Windows with wx.lib.pdfwin.
Also found:
http://code.activestate.com/recipes/577195-wxpython-pdf-viewer-using-poppler/
On Jul 4, 11:23 am, C M <cmpyt...@gmail.com> wrote:
On Fri, Jul 2, 2010 at 1:34 PM, Judith Flores <jur...@yahoo.com> wrote:
> Hi,> I was wondering if it is possible to lead pdf files from Linux? I found that it is possible from Windows with wx.lib.pdfwin.
This thread has a few different approaches offered:ActiveState Community - Boosting coder and team productivity with ready-to-use open source languages and tools.
Che
One more note, sorry for the extraneous posts...
If you need poppler on windows as well, IIRC it is non-trivial to
build on windows esp. when you factor in all the dependencies. But you
should be able to download prebuilt libs through the KDEWin
installer... http://windows.kde.org/
- michael
On Jul 4, 1:51 pm, michael h <michaelke...@gmail.com> wrote:
Also found:
http://code.activestate.com/recipes/577195-wxpython-pdf-viewer-using-…
On Jul 4, 11:23 am, C M <cmpyt...@gmail.com> wrote:
> On Fri, Jul 2, 2010 at 1:34 PM, Judith Flores <jur...@yahoo.com> wrote:
> > Hi,> > I was wondering if it is possible to lead pdf files from Linux? I found that it is possible from Windows with wx.lib.pdfwin.
> This thread has a few different approaches offered:ActiveState Community - Boosting coder and team productivity with ready-to-use open source languages and tools.
> Che
If all you want to do is launch an external app that is able to show the PDF then you can use wx.MimeTypesManager to get the command that should be used to launch the one that the user has set as their preference.
On 7/3/10 1:08 PM, Tom Brown wrote:
Judith,
I looked for a solution to this problem awhile ago. I could not find a
nice way of loading a pdf file into a pdf reader. My solution was to
look for standard readers in the standard locations and use the first
one I came across. I believe I launched it using the system() call. The
problem is that it may not be the reader the user likes to use.
--
Robin Dunn
Software Craftsman
I was trying to do the same a while ago, ended up using
os.startfile('anyfile.pdf')
this simply calls the file with the system default pdf viewer
On 5 jul, 17:47, Robin Dunn <ro...@alldunn.com> wrote:
On 7/3/10 1:08 PM, Tom Brown wrote:
> Judith,
> I looked for a solution to this problem awhile ago. I could not find a
> nice way of loading a pdf file into a pdf reader. My solution was to
> look for standard readers in the standard locations and use the first
> one I came across. I believe I launched it using the system() call. The
> problem is that it may not be the reader the user likes to use.If all you want to do is launch an external app that is able to show the
PDF then you can use wx.MimeTypesManager to get the command that should
be used to launch the one that the user has set as their preference.--
Robin Dunn
Software Craftsmanhttp://wxPython.org
Thank you very much all for your suggestions.
Have a nice day (or evening),
Judith
----- Original Message ----
From: monobot <hector.aa@gmail.com>
To: wxPython-users <wxpython-users@googlegroups.com>
Sent: Tue, July 6, 2010 3:33:51 AM
Subject: [wxPython-users] Re: Loading pdf files in wxPython from Linux
I was trying to do the same a while ago, ended up using
os.startfile('anyfile.pdf')
this simply calls the file with the system default pdf viewer
On 5 jul, 17:47, Robin Dunn <ro...@alldunn.com> wrote:
On 7/3/10 1:08 PM, Tom Brown wrote:
> Judith,
> I looked for a solution to this problem awhile ago. I could not find a
> nice way of loading a pdf file into a pdf reader. My solution was to
> look for standard readers in the standard locations and use the first
> one I came across. I believe I launched it using the system() call. The
> problem is that it may not be the reader the user likes to use.If all you want to do is launch an external app that is able to show the
PDF then you can use wx.MimeTypesManager to get the command that should
be used to launch the one that the user has set as their preference.--
Robin Dunn
Software Craftsmanhttp://wxPython.org
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
"os.startfile()" gets the OS to run the application that the OS has
associated for all files with the extension [ .pdf ]. At least, that
is how MSW works.
However, you were unclear about what "lead [load] pdf files from
Linux".
For 50 points, this means:
a) Get the OS to display the PDF
b) Get wxPython to display the PDF
c) Get Python to modify the contents
d) Any combination of the above
e) None of the above
Ray Pasco
On Jul 6, 1:29 pm, Judith Flores <jur...@yahoo.com> wrote:
Thank you very much all for your suggestions.
Have a nice day (or evening),
Judith
----- Original Message ----
From: monobot <hector...@gmail.com>
To: wxPython-users <wxpython-users@googlegroups.com>
Sent: Tue, July 6, 2010 3:33:51 AM
Subject: [wxPython-users] Re: Loading pdf files in wxPython from LinuxI was trying to do the same a while ago, ended up using
os.startfile('anyfile.pdf')
this simply calls the file with the system default pdf viewer
On 5 jul, 17:47, Robin Dunn <ro...@alldunn.com> wrote:
> On 7/3/10 1:08 PM, Tom Brown wrote:> > Judith,
> > I looked for a solution to this problem awhile ago. I could not find a
> > nice way of loading a pdf file into a pdf reader. My solution was to
> > look for standard readers in the standard locations and use the first
> > one I came across. I believe I launched it using the system() call. The
> > problem is that it may not be the reader the user likes to use.> If all you want to do is launch an external app that is able to show the
> PDF then you can use wx.MimeTypesManager to get the command that should
> be used to launch the one that the user has set as their preference.> --
> Robin Dunn
> Software Craftsmanhttp://wxPython.org--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visithttp://groups.google.com/group/wxPython-users?hl=en