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/21 11:39:00 UTC

[jira] [Closed] (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:all-tabpanel ]

Tilman Hausherr closed PDFBOX-4936.
-----------------------------------
    Resolution: Not A Bug

Closing as this isn't a bug, but a broken font in the PDF, of which PDFBox recovers from gracefully.

> 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