[Poppler-bugs] [Bug 103127] shows wrong characters

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Oct 6 23:51:48 UTC 2017


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

--- Comment #2 from Adrian Johnson <ajohnson at redneon.com> ---
I don't know why people keep using buggy pdf printers when Word has a perfectly
good save as pdf feature builtin that preserves all the hyperlinks.

The pdf fails to render with Adobe Reader on Linux. Since it works on other
viewers on Linux I had a quick look to see if there is anything we can do.

The problem is the fonts are all non-embedded CID TrueType with Identity
encoding. The fonts do have ToUnicode maps which I assume is what the other
viewers are using to map character codes to a substitute font.

When loading a substitute CID font, GfxCIDFont::getCodeToGIDMap() is called to
map the character codes to the substitute font glyphs.

At line 2252 we bail out

  if (getCollection()->cmp("Adobe-Identity") == 0) return NULL;

I commented out this line and the PDF seems to render fine (as it is not in
English a can't be 100% certain).

I don't know if this is a fix or a hack. I have not spent any time
investigating  the implications of commenting out this line.

-- 
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/20171006/3923a11d/attachment.html>


More information about the Poppler-bugs mailing list