[
https://issues.apache.org/jira/browse/PDFBOX-2222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14067495#comment-14067495
]
Tilman Hausherr commented on PDFBOX-2222:
-----------------------------------------
The three lines on top are fron three different streams. Each of them uses a
font named "Cour" with size 10. However when processing the third line, the one
with 9876, the "Cour" font isn't found. I don't have to research why (something
with the resources stack), because Adobe Reader is using a different font
(looks like Arial), obviously a fallback solution. So I now create a default
font if font is null and now the file is rendered.
This was done in rev 1611893 and 1611894 for the trunk.
> NPE from PDFBOX-1434
> --------------------
>
> Key: PDFBOX-2222
> URL: https://issues.apache.org/jira/browse/PDFBOX-2222
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 2.0.0
> Reporter: simon steiner
> Assignee: Tilman Hausherr
>
> java -jar pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage
> PDFBOX-1434/forms26916.pdf
> Exception in thread "main" java.lang.NullPointerException
> at
> org.apache.pdfbox.util.PDFStreamEngine.processText(PDFStreamEngine.java:408)
--
This message was sent by Atlassian JIRA
(v6.2#6252)