[Poppler-bugs] [Bug 102760] pdftops generates crumbled text

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 18 19:57:24 UTC 2017


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

--- Comment #10 from William Bader <williambader at hotmail.com> ---
Created attachment 134321
  --> https://bugs.freedesktop.org/attachment.cgi?id=134321&action=edit
proposed pach

This patch moves the code to update the max valid glyph hash into its own
function and updates the max valid glyph only if the new value is higher than
the previous value.
This fixes a problem with pages that have multiple copies of the same font with
different glyph counts. If poppler processed the font with the smaller count
last, and then the PDF wrote text in the font with the larger count, pdftops
would not show the glyphs above the maximum of the smaller font.
I suspect that this issue is rare because the original issue
https://bugs.freedesktop.org/show_bug.cgi?id=63963 was reported in 2013, not
touched for several years in poppler, and still exists in the recently released
xpdf-4.00. Also, my patch was applied in December 2016 (9 months ago), and this
is the first reported regression.
Regards, William

-- 
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/20170918/1bb3009e/attachment.html>


More information about the Poppler-bugs mailing list