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

Tilman Hausherr updated PDFBOX-2315:
------------------------------------
    Attachment: 1409850087784.txt
                pdfbox-2315.pdf-1.png

Some type1 fonts have "noaccess ND" instead of "noaccess def". (ND is shortcut 
for "noaccess def")

The fix is rather simple, e.g. insert 
{code}
        if (token.getText().equals("def"))
        {
            return;
        }
{code}
before the line with the exception in type1parser. However there may be 
something else that is wrong with that font. At the bottom, "Wenn" is rendered 
as "W   enn".

> Found Token[kind=NAME, text=ND] but expected ND
> -----------------------------------------------
>
>                 Key: PDFBOX-2315
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2315
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: simon steiner
>         Attachments: 1409850087784.txt, PDFBOX-2315.pdf, pdfbox-2315.pdf-1.png
>
>
> PDF from PDFBOX-759
> java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage 
> Mathematik_Stochastik.pdf
> java.io.IOException: Found Token[kind=NAME, text=ND] but expected ND
>       at org.apache.fontbox.type1.Type1Parser.readDef(Type1Parser.java:698)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to