You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2024/02/12 11:32:00 UTC
[jira] [Commented] (PDFBOX-5766) CharStringCommand-mapping does not work for HintMask-cmd
[ https://issues.apache.org/jira/browse/PDFBOX-5766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17816580#comment-17816580 ]
Tilman Hausherr commented on PDFBOX-5766:
-----------------------------------------
Sadly the "unknown command" can be found only in toString(), when it's already too late to know what happened. We would have to change all constructors and getInstance() calls. If you can't share the document, can you extract the font with PDFDebugger and share that one? Can you reproduce the problem by calling CFFParser.parse() on the font?
> CharStringCommand-mapping does not work for HintMask-cmd
> --------------------------------------------------------
>
> Key: PDFBOX-5766
> URL: https://issues.apache.org/jira/browse/PDFBOX-5766
> Project: PDFBox
> Issue Type: Bug
> Reporter: Dieter von Holten
> Priority: Minor
>
> i have a (proprietary) document with a licensed font. Opening it in PdfDebug shows some 'Unknown-command' messages.
> I could track it down (in glyph-handling) to some HintMask-command(19), which is followed by a mask-byte. The attempt to map this to a CharStringCommand fails, because it tries to lookup a 2-byte command. There doesn't seem to be a way to create a CharStringCommand with additional data.
>
> AddOn: the 'unknown command' log-message should be enhanced to actually show the 'unknown command'
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org