Re: View for pdf?

2011-07-30 Thread Edward K. Ream
On Fri, Jul 29, 2011 at 3:17 PM, Ville M. Vainio vivai...@gmail.com wrote:
 On Fri, Jul 29, 2011 at 3:14 PM, Edward K. Ream edream...@gmail.com wrote:

 I have been following this thread with interest.  It doesn't seem that
 poppler has a PyQt binding, so it's not clear how to proceed.

 There seems to be some work done on the matter:

 http://www.overthere.co.uk/2011/03/06/setup-poppler-windows-pyqt/

Thanks for this link.  I hope that poppler becomes a standard part of
Qt/pytqt so that all of Leo's users can use it without fuss.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.



Re: View for pdf?

2011-07-29 Thread Edward K. Ream
On Thu, Jul 21, 2011 at 12:36 PM, Kent Tenney kten...@gmail.com wrote:
 Howdy,

 I don't have in inkling as to the magic which renders views
 of stuff like videos, could it be convinced to show content of a pdf?

I have been following this thread with interest.  It doesn't seem that
poppler has a PyQt binding, so it's not clear how to proceed.

However, it's a worthy goal.  I've just created the following wishlist item:
https://bugs.launchpad.net/leo-editor/+bug/818007

Edward

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.



Re: View for pdf?

2011-07-29 Thread Ville M. Vainio
On Fri, Jul 29, 2011 at 3:14 PM, Edward K. Ream edream...@gmail.com wrote:

 I have been following this thread with interest.  It doesn't seem that
 poppler has a PyQt binding, so it's not clear how to proceed.

There seems to be some work done on the matter:

http://www.overthere.co.uk/2011/03/06/setup-poppler-windows-pyqt/

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.



Re: View for pdf?

2011-07-27 Thread Josef
Hi Kent,

On Jul 25, 4:27 pm, Kent Tenney kten...@gmail.com wrote:
 - use (for example) pdfminer to pull text from the pdf,
   it's pdf2text script will do a page split. This results in
   plain text which has lots of advantages over rendered pages.

I used pdftotext -layout for this, but within Leo a python module
makes of course more sense, even if it is much slower.

I really want rendered PDF pages, however, because of tables, images
etc, which and PDF to text conversion cannot handle properly.

 Maybe the OpenOffice (LibreOffice) Python bindings could help.
 OO has great pdf capability.

Under Debian/Ubuntu the binding between Python and OO is simply done
by the uno module, but at least on Windows you need to run the Python
that comes with OOo - other distributions won't work. Since it is a
pain to convert the OOo Python to be used as the system Python, this
practically limits such a solution to Linux. It may also work on the
Mac, but a colleague had lots of problems finding the right
combination of Python, uno module and OOo, as the uno module did not
get distributed with OOo regularly. Even if you could control OOo from
Leo, this would not give you a PDF viewer within Leo.

Also, I think a solution based on the poppler library has a better
chance to cover also upcoming versions of PDF, as it seems to be well
supported and is the basis of several viewers.
So, I find it would probably best to look into the Qt widget you
mentioned.

- Josef

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.



Re: View for pdf?

2011-07-25 Thread Josef
Being able to view a PDF from within Leo would be nice, even more so,
if it allows displaying a particular page, as I tend to collect lots
of references to specific PDF pages. It should allow such references
to work cross-platform. Different external viewers Acrobat, Evince,
Okular, xpdf etc. all use a different syntax for selecting a
particular page, which makes it difficult to write page references in
a platform independent way when using external viewers.

Spinning this idea a bit further: such a PDF viewer could then
possibly also display the PDF output of @rst nodes, or (pdf-)latex
files. I also would be delighted to see Leo as a better TeX editor.
TeXworks does a great job at synchronizing the PDF view with the LaTeX
source - I wish Leo would have similar LaTeX support.

- Josef

On Jul 21, 8:54 pm, Kent Tenney kten...@gmail.com wrote:
 On Thu, Jul 21, 2011 at 12:41 PM, Terry Brown terry_n_br...@yahoo.com wrote:
  On Thu, 21 Jul 2011 12:36:14 -0500
  Kent Tenney kten...@gmail.com wrote:

  I don't have in inkling as to the magic which renders views
  of stuff like videos, could it be convinced to show content of a pdf?

  I have lots of pdf's with content of interest.

  A question of whether there's a Qt wrapper for it, not aware of any

 http://doc.qt.nokia.com/qq/qq27-poppler.html?

  unless the full-blown (as opposed to the light weight) web browser
  widget can wrap one.

  Cheers -Terry

  --
  You received this message because you are subscribed to the Google Groups 
  leo-editor group.
  To post to this group, send email to leo-editor@googlegroups.com.
  To unsubscribe from this group, send email to 
  leo-editor+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/leo-editor?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.



View for pdf?

2011-07-21 Thread Kent Tenney
Howdy,

I don't have in inkling as to the magic which renders views
of stuff like videos, could it be convinced to show content of a pdf?

I have lots of pdf's with content of interest.

Thanks,
Kent

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.



Re: View for pdf?

2011-07-21 Thread Terry Brown
On Thu, 21 Jul 2011 12:36:14 -0500
Kent Tenney kten...@gmail.com wrote:

 I don't have in inkling as to the magic which renders views
 of stuff like videos, could it be convinced to show content of a pdf?
 
 I have lots of pdf's with content of interest.

A question of whether there's a Qt wrapper for it, not aware of any
unless the full-blown (as opposed to the light weight) web browser
widget can wrap one.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.



Re: View for pdf?

2011-07-21 Thread Kent Tenney
On Thu, Jul 21, 2011 at 12:41 PM, Terry Brown terry_n_br...@yahoo.com wrote:
 On Thu, 21 Jul 2011 12:36:14 -0500
 Kent Tenney kten...@gmail.com wrote:

 I don't have in inkling as to the magic which renders views
 of stuff like videos, could it be convinced to show content of a pdf?

 I have lots of pdf's with content of interest.

 A question of whether there's a Qt wrapper for it, not aware of any

http://doc.qt.nokia.com/qq/qq27-poppler.html ?

 unless the full-blown (as opposed to the light weight) web browser
 widget can wrap one.

 Cheers -Terry

 --
 You received this message because you are subscribed to the Google Groups 
 leo-editor group.
 To post to this group, send email to leo-editor@googlegroups.com.
 To unsubscribe from this group, send email to 
 leo-editor+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/leo-editor?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com.
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.