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

Andreas Lehmkühler commented on PDFBOX-5915:
--------------------------------------------

[~tilman] I've attached an alternative patch. I've added another if clause so 
that the commands in question are handled separately. IMHO the code is more 
clear. CharStringCommand shouldn't know anything about commands to be skipped

> false "Unknown charstring command in glyph" messages
> ----------------------------------------------------
>
>                 Key: PDFBOX-5915
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5915
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 3.0.3 PDFBox
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 3.0.4 PDFBox, 4.0.0
>
>         Attachments: PDFBOX-5915_patch.txt, bugzilla867751.pdf
>
>
> I'm often getting "Unknown charstring command in glyph" messages. I took the 
> time to find whether these are real, and they're not. They happen because of 
> type2 charstrings that start with 19 or 20. These are passed to 
> {{CharStringCommand.getInstance(value)}} where they are classified as UNKNOWN 
> either because the value array is more than 2 or because a 2 byte command 
> doesn't result in a known value. However 19 and 20 are 1 byte commands 
> (hintmask and cntrmask, which we ignore) so this must be changed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to