This patch uses the Poppler pdf library to render pdf's for xournal.
Perhaps
the most noticeable improvements are that it fixes some off-by-one errors
in
the original code that made pdf's look fuzzy, is a lot faster, and consumes
a
lot less memory. In the long term, using Poppler is desirable because it
enables text searching, and hopefully someday storing annotations in the
pdf.
Additionally it strips out the asychronous pdf rendering code which called
pdftoppm as an external process. (poppler is many times faster than
pdftoppm
and can render on-the-fly in reasonable time) Instead it renders one page
at a
time, when the page is viewed, the same as evince. This additionally
reduces
memory consumption drastically when viewing large pdf's. (I have some 800
page
textbooks as pdfs that I would like to annotate, but they cause xournal to
use
~ 1GB of memory to open them)
This patch is not finished, but it now works well enough that no
functionality
is lost. In particular before incorporating to xournal I want to:
* Simplify the bgpdf code. In particular the BgPdfPage struct is not
needed
anymore and the BgPdf struct can be simplified.
* Use is_visible to figure out which pages need to be rendered.
* Free memory of pages that are not visible.
* There is probably some logic error if you try to load more than one pdf
file
successively in a xournal session.
I am indebted to Mike Ter Louw for creating the original version of this
patch.
If you test this patch, please report your experience and any bugs you
encounter!
Nobody/Anonymous
None
None
Public
|
Date: 2009-10-03 02:07 Ok, release 0.4.5 is out and it includes a modified version of this patch. |
|
Date: 2009-09-05 07:03 Poppler's speed depends on the hardware and on the content of the pdf file. |
|
Date: 2009-09-01 01:24 Hi Bob, |
|
Date: 2009-08-30 22:15 Hi Denis, |
|
Date: 2009-08-30 21:53 Hi Bob, |
|
Date: 2009-08-29 05:37 Great!!! You also fixed a couple bugs I was planning to attack this |
|
Date: 2009-08-29 01:06 I've incorporated poppler code (loosely based on this patch) into the CVS |
|
Date: 2009-08-15 21:59 Uncheking Antialiased Bitmaps and Progressive Backgrounds helped with that, |
|
Date: 2009-08-13 21:56 Make sure "Antialiased Bitmaps" is unchecked. |
|
Date: 2009-08-13 21:50 I seem to be having a show stopper here on Ubuntu 9.04, both zooming and |
|
Date: 2009-07-26 15:53 Simplifying bgpdf is making my head hurt. We have many functions with |
|
Date: 2009-07-25 15:27 Since i applied the patch i am no longer able use "Attach file to xournal" |
|
Date: 2009-07-25 14:28 No, thats exactly it. If i try to load another PDF in the same session it |
|
Date: 2009-07-25 14:27 I'm not aware of pdf's it fails to load. I'm aware it fails if you try to |
|
Date: 2009-07-25 13:37 I am very excited about this patch. |
|
Date: 2009-07-21 09:13 I think both "Antialiased Bitmaps" and "Progressive Backgrounds" should go |
|
Date: 2009-07-21 08:13 Quick note: this patch only seems to work reasonably well if you disable |
|
Date: 2009-07-21 06:53 Two things: |
|
Date: 2009-07-20 22:11 Added version 0.0.6, which fixes a g_object_unref error, removes some |
| Filename | Description | Download |
|---|---|---|
| poppler-pdf-rendering-0.0.6.patch | Poppler PDF rendering | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | - | 2009-10-03 02:07 | auroux |
| status_id | Open | 2009-10-03 02:07 | auroux |
| File Deleted | 335762: | 2009-07-20 22:12 | mcelrath |
| File Added | 335842: poppler-pdf-rendering-0.0.6.patch | 2009-07-20 22:12 | mcelrath |
| File Added | 335762: poppler-pdf-rendering-0.0.5.patch | 2009-07-20 10:05 | mcelrath |