[ 
https://issues.apache.org/jira/browse/PDFBOX-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13535928#comment-13535928
 ] 

Juraj Lonc commented on PDFBOX-1473:
------------------------------------

I think I found where is the problem.

It seems that command "hintmask" is incorrectly parsed. It results to incorrect 
count of hints and that causes that incorrect number of following bytes is read 
(as part of hintmask operator). And this naturally leads to incorrect parsing 
of data following the "hintmask".

Commands should be parsed in "inline" way, so "callsubr" and "callgsubr" should 
be "expanded" to the stack before the following data is parsed.
I am not sure if I explained it understoodable ;)
                
> 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, 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