[ https://issues.apache.org/jira/browse/PDFBOX-3916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16147571#comment-16147571 ]
Jorge Spinsanti commented on PDFBOX-3916: ----------------------------------------- pdfinfo shows the following output: {code} Creator: Toolkit http://www.activepdf.com Producer: Toolkit http://www.activepdf.com CreationDate: Mon Apr 17 16:34:28 2017 ModDate: Tue Apr 18 07:44:34 2017 Tagged: no UserProperties: no Suspects: no Form: none JavaScript: no Pages: 1 Encrypted: no Page size: 612 x 792 pts (letter) Page rot: 0 File size: 565615 bytes Optimized: no PDF version: 1.4 {code} > NPE on org.apache.pdfbox.pdmodel.font.PDType0Font.readEncoding > -------------------------------------------------------------- > > Key: PDFBOX-3916 > URL: https://issues.apache.org/jira/browse/PDFBOX-3916 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Affects Versions: 2.0.6 > Reporter: Jorge Spinsanti > Attachments: NPEatPDType0Font_readEncoding.pdf > > > I got a NullPointerException on file attached. The file can see using PDF > reader (I tested using Chrome): > {code} > java.lang.NullPointerException > at > org.apache.pdfbox.pdmodel.font.PDType0Font.readEncoding(PDType0Font.java:208) > at > org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:129) > at > org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83) > at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143) > at > org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60) > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838) > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495) > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469) > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150) > at > org.apache.pdfbox.text.LegacyPDFStreamEngine.processPage(LegacyPDFStreamEngine.java:139) > at > org.apache.pdfbox.text.PDFTextStripper.processPage(PDFTextStripper.java:391) > at org.apache.tika.parser.pdf.PDF2XHTML.processPage(PDF2XHTML.java:147) > at > org.apache.pdfbox.text.PDFTextStripper.processPages(PDFTextStripper.java:319) > at > org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:266) > at org.apache.tika.parser.pdf.PDF2XHTML.process(PDF2XHTML.java:117) > at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:159) > at > org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org