[Poppler-bugs] [Bug 83643] Add poppler_page_render_annot method

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Apr 23 17:42:27 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=83643

--- Comment #4 from Patrick Golden <ptgolden0 at gmail.com> ---
I was getting ready to send a patch that looked much like this one after
inquiring about rendering individual annotations on the mailing list
(https://lists.freedesktop.org/archives/poppler/2017-April/012165.html).

I am not sure I am a skilled enough C programmer to add highlight dragging to
the glib demo, but I can share my example use case. I am writing a program to
extract individual annotations from a PDF so that they can be aggregated and
analyzed across documents. For stamps, lines, etc., I need to have a visual
representation of the annotation to present to the user. In this code, I render
a single annotation and then send along a base64 encoded PNG image representing
its isolated visual representation:

https://github.com/ptgolden/pdf2oac-js/blob/glib/cpp/oac.cc#L116-L157

The poppler_page_render_annot in that code is the one I wrote, and it differs
from the one in this patch in only two trivial ways. First, the argument order
is switched around, and second, cairo_clip_extents is used to get the bounding
box to display (as suggested in a comment in the page code as well as in
_poppler_page_render).

What can I do to help this patch along?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20170423/f6a2c9dc/attachment.html>


More information about the Poppler-bugs mailing list