[Poppler-bugs] [Bug 105796] New: Render a single annotation with Qt5 frontend
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Mar 29 06:20:08 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=105796
Bug ID: 105796
Summary: Render a single annotation with Qt5 frontend
Product: poppler
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: qt frontend
Assignee: poppler-bugs at lists.freedesktop.org
Reporter: haxtibal at posteo.de
This is the Qt double of bug 83642. It adds Annotation::renderToImage() and
similar methods.
The patch series has following use cases in mind:
-show realistic preview of icons in readers
-WYSIWYG editing of free text annotations, e.g. typewriter
-paint annotations while dragging them around (render page is expensive)
-extract single annotations from PDF with a command line tool
-enable composition of annotations in readers; quite tricky, due to blend mode,
z-order and the ilk
Example usage:
...
/* Generate image where annotation #0 is painted at offset (0,0) on
transparent background. */
Poppler::Annotation* annot = pdfPage->annotations()[0];
QImage img = annot->renderToImage(myDpiX, myDpiY);
...
I'd recommend to fix bug 105692 along with these patches, to get the size right
in all circumstances.
--
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/20180329/47fa7f59/attachment.html>
More information about the Poppler-bugs
mailing list