[poppler] [PATCH] Arthur backend fixes; poppler-qt4 direct rendering
Matthias Fauconneau
matthias.fauconneau at gmail.com
Mon Nov 1 09:42:05 PDT 2010
Hi,
I'm currently using Poppler for a score player application, and since
the synthesizer is already using all my memory and CPU, I wanted to
render the PDF using the GPU.
I wonder why it seems nobody cares about the Arthur backend ?
The first patch contains two easy fixes for Arthur :
- font rendering (transforming the glyph path and not only the glyph origin).
- image rendering (alpha was set to zero).
The second patch expose the QPainter interface directly through a
renderToPainter method which use an existing painter instead of
creating an image.
This allows to directly render the PDF using OpenGL, and since the
painting is fast, there is no need to cache prerendered pages. so it's
using less CPU and less memory.
in case you want to try the QGraphicsView OpenGL PDF renderer:
http://gitorious.org/qt-pdfviewer (only needs Qt and Poppler, the
other deps are optionnal)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-arthur-backend.patch
Type: text/x-patch
Size: 4940 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20101101/3edc5bba/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: render-to-qpainter.patch
Type: text/x-patch
Size: 3792 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20101101/3edc5bba/attachment-0001.bin>
More information about the poppler
mailing list