<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 - poppler_page_render_for_printing on cairo_pdf_surface repeats content"
href="https://bugs.freedesktop.org/show_bug.cgi?id=104864">104864</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>poppler_page_render_for_printing on cairo_pdf_surface repeats content
</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>cairo backend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>poppler-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jsagarribay@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=137056" name="attach_137056" title="Test program">attachment 137056</a> <a href="attachment.cgi?id=137056&action=edit" title="Test program">[details]</a></span>
Test program
I am writing a small utility to manipulate PDF files. It loads input files, let
the user delete, duplicate or reorder pages and then calls
poppler_page_render_for_printing in the desired output order, using a
cairo_pdf_surface. It worked fine until testing with certain scanned PDF, where
it outputs the same page each time.
I'll attach a C test program (compile with gcc test.c `pkg-config --cflags
--libs poppler-glib cairo gobject-2.0 gio-2.0`) and two input PDF (zma_001.pdf
and zma_002.pdf). Called as "./a.out zma_001.pdf zma_002.pdf output.pdf" is
expected to create output.pdf with both input pages concatenated, but the first
page appears twice (but clipped to the second page's dimensions).
The expected output is generated when using poppler_page_render instead of
poppler_page_render_for_printing but this makes bigger files (maybe resamples
the images?).
Thanks</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>