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 2020/08/14 03:45:00 UTC

[jira] [Commented] (PDFBOX-4936) IOException: Found Token[kind=NAME, text=put] but expected LITERAL

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

Tilman Hausherr commented on PDFBOX-4936:
-----------------------------------------

We don't support the full postscript for type 1 fonts... but this time I think it's different. My own version shows the offset where it fails and it's here
{code}
0 1 255 {1 index exch /.notdef put} for
 readonly def put } for
{code}
It fails at the second "}", at offset 625. There is no opening "{" for that one. [^Type1-Ascii-625-1597376523881.bin] 

> IOException: Found Token[kind=NAME, text=put] but expected LITERAL
> ------------------------------------------------------------------
>
>                 Key: PDFBOX-4936
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4936
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.20
>            Reporter: Lianne Louie
>            Priority: Major
>         Attachments: Type1-Ascii-625-1597376523881.bin, ajusto-condition-dispositif_ON.pdf
>
>
> When processing the attached PDF you receive the following error message:
> {noformat}
> 2020-07-27 22:25:54.642 ERROR [http-nio-8080-exec-8][PDType1Font:273] Can't read the embedded Type1 font ABJEHJ+Helvetica Narrow java.io.IOException: Found Token[kind=NAME, text=put] but expected LITERAL at
>  org.apache.fontbox.type1.Type1Parser.read(Type1Parser.java:812)
> {noformat}
> This seems to be due to the embedded type1 font (Helvetica Narrow) having the following construction:
> {noformat}
> 0 1 255 {1 index exch /.notdef put} for
> readonly def put } for
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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