[ https://issues.apache.org/jira/browse/PDFBOX-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13538870#comment-13538870 ]
Juraj Lonc commented on PDFBOX-1473: ------------------------------------ Yes. But you have to remember that any sequence of operators and operands which comes to CharStringConverter must be already "inflated" (subrs replaced). If there is any subr command in that sequence then exception should be thrown. You are right, handling of subr commands in CharStringConverter is obsolete and not necessary. If you remove handling of subr commands than CharStringConverter does not need fontGlobalSubrIndex/fontLocalSubrIndex. Type1CharStringParser should be fixed the same way. > Incorrect handling of OpenType fonts > ------------------------------------ > > Key: PDFBOX-1473 > URL: https://issues.apache.org/jira/browse/PDFBOX-1473 > Project: PDFBox > Issue Type: Bug > Components: FontBox > Affects Versions: 1.7.1 > Reporter: Juraj Lonc > Assignee: Andreas Lehmkühler > Attachments: CFFParser.patch, parsingfix_CFFFont.patch, > parsingfix_Type2CharStringParser.patch, PDType1CFont.patch, > redig_test_textAdded.pdf > > > There is embedded font in this PDF which pdfbox/fontbox does not handle > properly. > This OpenType font contains CFF data. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira