[Poppler-bugs] [Bug 104864] poppler_page_render_for_printing on cairo_pdf_surface repeats content

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Feb 24 11:51:05 UTC 2018


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

--- Comment #3 from Jaime Velasco Juan <jsagarribay at gmail.com> ---
Created attachment 137578
  --> https://bugs.freedesktop.org/attachment.cgi?id=137578&action=edit
derive image surface UNIQUE_ID from its  contents

In CairoOutputDev::setMimeData we set CAIRO_MIME_TYPE_UNIQUE_ID to
"poppler-surface-{ref.gen}-{ref.num}", and the same ref number is likely reused
in several files, especially with scanned documents.

Set the ID to "poppler-surface-{digest}-{ref.gen}-{ref.num}" to avoid merging
unrelated images in the output surface.

-- 
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/20180224/4cbdd660/attachment.html>


More information about the Poppler-bugs mailing list