[
https://issues.apache.org/jira/browse/PDFBOX-6022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17983645#comment-17983645
]
Tilman Hausherr commented on PDFBOX-6022:
-----------------------------------------
After looking at the files and without thinking much, I changed the code
segment to this:
{code:java}
if (getToUnicodeCMap() != null && !isCMapPredefined)
{
return Character.toString((char) code);
}
{code}
Now it works and even PDFBOX-5838 (which we had abandoned) works too.
I'd need to run our big regression tests after the tika release.
> Wrong glyphs since PDFBOX-5790
> ------------------------------
>
> Key: PDFBOX-6022
> URL: https://issues.apache.org/jira/browse/PDFBOX-6022
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 3.0.3 PDFBox
> Reporter: Oliver Schmidtmer
> Priority: Major
> Attachments: image-2025-06-18-13-34-11-364.png,
> image-2025-06-18-13-36-35-370.png, pdf viewer example 001.pdf
>
>
> The attached PDF has an rendering issue with missing or wrong glpyhs since
> PDFBox 3.0.3:
> !image-2025-06-18-13-34-11-364.png|width=452,height=160!
> Last worked in 3.0.2:
> !image-2025-06-18-13-36-35-370.png|width=461,height=163!
> I think this is the change, which caused this:
> [https://github.com/apache/pdfbox/commit/4345f7ca01277a8ff94ae75aa7b7dd76e61b77e4]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]