[
https://issues.apache.org/jira/browse/PDFBOX-2563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14244485#comment-14244485
]
John Hewson commented on PDFBOX-2563:
-------------------------------------
{code}
int cid = codeToCID(code);
// e) Map the CID according to the CMap from step d), producing a
Unicode value
- return cMapUCS2.toUnicode(cid);
+ return cMapUCS2.toUnicode(code);
{code}
This change breaks "Map the CID according to the CMap" from the PDF spec.
> [PATCH] Use cmap for TTF fallback
> ---------------------------------
>
> Key: PDFBOX-2563
> URL: https://issues.apache.org/jira/browse/PDFBOX-2563
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: simon steiner
> Attachments: VariousKFontsNotembeded218.PDF, ttfcmapfallback.patch
>
>
> java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage
> VariousKFontsNotembeded218.PDF
> This patch addresses some of the issues in PDFBOX-2509.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)