[
https://issues.apache.org/jira/browse/PDFBOX-5384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17500958#comment-17500958
]
Tilman Hausherr commented on PDFBOX-5384:
-----------------------------------------
Thanks! I tried replacing {{!toUnicodeCMap.hasUnicodeMappings()}} with
{{{}(!toUnicodeCMap.hasUnicodeMappings() &&
!toUnicodeCMap.hasCIDMappings()){}}}.
Now the file PDFBOX-4322-Empty-ToUnicode-reduced.pdf fails text extraction,
("Justin") is missing.
> Wrong glyphs used
> -----------------
>
> Key: PDFBOX-5384
> URL: https://issues.apache.org/jira/browse/PDFBOX-5384
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.25
> Reporter: Oliver Schmidtmer
> Priority: Major
> Labels: regression
> Attachments: DOR-EC E-N20_118345.pdf,
> image-2022-03-02-23-41-15-844.png
>
>
> The attached PDF uses Tahoma fonts.
> It seems the correct font is used, but it uses the wrong glyphs.
> For example the "6" from the screenshot is definitely from Tahoma Glyph 25 /
> CID 54, where it should be "S" Glyph 54 / CID 83.
> The "=" in screenshot is Glyph 32 CID 61 where "Z" Glyph 61 CID 90 should be
> used.
> !image-2022-03-02-23-41-15-844.png!
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]