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

Tilman Hausherr resolved PDFBOX-2202.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0
         Assignee: Tilman Hausherr  (was: John Hewson)

Sorry, this one was easier than I initially thought, I just had to allow an 
optional "readonly" before "def", in rev 1612085 for the trunk.

> java.io.IOException: Found Token[kind=NAME, text=readonly] but expected def
> ---------------------------------------------------------------------------
>
>                 Key: PDFBOX-2202
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2202
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>              Labels: type1font
>             Fix For: 2.0.0
>
>         Attachments: PDFBOX-2202-003417.pdf
>
>
> I get this exception with the attached file:
> {code}
> 11.07.2014 21:10:36.830 ERROR [main] 
> org.apache.pdfbox.pdmodel.font.PDType1Font:220 - Can't read the embedded 
> Type1 font GBCGAB+CMR10
> java.io.IOException: Found Token[kind=NAME, text=readonly] but expected def
>       at org.apache.fontbox.type1.Type1Parser.read(Type1Parser.java:741)
>       at org.apache.fontbox.type1.Type1Parser.parseASCII(Type1Parser.java:135)
>       at org.apache.fontbox.type1.Type1Parser.parse(Type1Parser.java:61)
>       at 
> org.apache.fontbox.type1.Type1Font.createWithSegments(Type1Font.java:68)
>       at 
> org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:216)
>       at 
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:56)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to