[ https://issues.apache.org/jira/browse/PDFBOX-2665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14312678#comment-14312678 ]
John Hewson commented on PDFBOX-2665: ------------------------------------- {quote} I'm just converting the tabs to spaces in code now, but PDFBOX trunk was working, for tabs, last i checked, a few weeks ago. {quote} That was a bug, the intended behaviour for missing glyphs is to raise an IllegalArgumentException. {quote} Alternatively, I just used Type 1 font because that's what the examples showed. If you have another snippet of code, to use Helvetica or Arial or something common, that can handle all characters, please post it? {quote} Generally TTF fonts support a broader range of characters, take a look at our EmbeddedFonts example. > PDType1Font (HELVETICA) encode getting NullPointerException > ----------------------------------------------------------- > > Key: PDFBOX-2665 > URL: https://issues.apache.org/jira/browse/PDFBOX-2665 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Affects Versions: 2.0.0 > Environment: Win 7, JDK 7, JBoss AS 7 > Reporter: Daniel Brownell > Assignee: John Hewson > Fix For: 2.0.0 > > > Hi, > I have been trying to revert to previous pdfbox-2.0.0 versions, which is why > the error is from a previous build, but this is applicable to the latest > (2.0.0-20150204.015951-1042) too. > I am getting this error, which I was not getting a month ago. > Regards... > Error: java.lang.NullPointerException > at > org.apache.pdfbox.pdmodel.font.PDType1Font.encode(PDType1Font.java:309) > [pdfbox-2.0.0-20150129.080600-1013.jar:2.0.0-SNAPSHOT] > at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:267) > [pdfbox-2.0.0-20150129.080600-1013.jar:2.0.0-SNAPSHOT] > at > org.apache.pdfbox.pdmodel.PDPageContentStream.showText(PDPageContentStream.java:316) > [pdfbox-2.0.0-20150129.080600-1013.jar:2.0.0-SNAPSHOT] -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org