[ 
https://issues.apache.org/jira/browse/PDFBOX-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Juraj Lonc updated PDFBOX-1473:
-------------------------------

    Attachment: parsingfix_Type2CharStringParser.patch
                parsingfix_CFFFont.patch

I made fix in parser.
"callsubr" and "callgsubr" commands are processed directly in parser so parser 
works with correct count of stems.

Parser works OK with this modification and CharString is being decoded 
correctly.

But I found another bug. OpenType fonts may have CMAP definition (like the one 
in attached PDF). And this CMAP is not handled/processed. You are expecting 
that Type1 font cannot have CMAP. This causes that no character is 
printed/drawed despite font is parsed correctly (now).
                
> 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

Reply via email to