You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/07/09 04:07:04 UTC
[jira] [Resolved] (PDFBOX-2192) "unknown command" in
Type1CharString.handleCommand
[ https://issues.apache.org/jira/browse/PDFBOX-2192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Hewson resolved PDFBOX-2192.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Indeed it does, thought in this case it was actually a problem with the font, some of the charstrings contain "0 0 [15]" but 15 is not a valid charstring command in Type 1 and it's reserved in Type 2.
I've fixed this by ignoring and warning truely unknown commands in [r1608985|http://svn.apache.org/r1608985].
> "unknown command" in Type1CharString.handleCommand
> --------------------------------------------------
>
> Key: PDFBOX-2192
> URL: https://issues.apache.org/jira/browse/PDFBOX-2192
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Labels: type1font
> Fix For: 2.0.0
>
> Attachments: PDFBOX-2192-006972.pdf
>
>
> I get this at page 24 of the attached PDF:
> {code}
> IOException for file pdfbox-2192-006972.pdf
> java.lang.IllegalArgumentException: Unknown command: null
> at org.apache.fontbox.cff.Type1CharString.handleCommand(Type1CharString.java:260)
> at org.apache.fontbox.cff.Type1CharString.access$000(Type1CharString.java:39)
> at org.apache.fontbox.cff.Type1CharString$1.handleCommand(Type1CharString.java:135)
> at org.apache.fontbox.cff.CharStringHandler.handleSequence(CharStringHandler.java:45)
> at org.apache.fontbox.cff.Type1CharString.render(Type1CharString.java:138)
> at org.apache.fontbox.cff.Type1CharString.getPath(Type1CharString.java:110)
> {code}
> A source code comment tells "indicates a PDFBox bug".
--
This message was sent by Atlassian JIRA
(v6.2#6252)