<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Render a single annotation with Qt5 frontend"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105796">105796</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Render a single annotation with Qt5 frontend
</td>
</tr>
<tr>
<th>Product</th>
<td>poppler
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>qt frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>poppler-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>haxtibal@posteo.de
</td>
</tr></table>
<p>
<div>
<pre>This is the Qt double of <a class="bz_bug_link
bz_status_NEW "
title="NEW - add a displayAnnot to Page class"
href="show_bug.cgi?id=83642">bug 83642</a>. 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 <a class="bz_bug_link
bz_status_NEW "
title="NEW - PDF compliance: Always respect Annot Rect"
href="show_bug.cgi?id=105692">bug 105692</a> along with these patches, to get the size right
in all circumstances.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>