Re: PdfBox Nullpointer error

2016-06-29 Thread Tilman Hausherr
It's sad you never answered, but the proposed change has been made in https://issues.apache.org/jira/browse/PDFBOX-2854 Tilman Am 21.04.2016 um 20:08 schrieb Tilman Hausherr: Could you upload the PDF file somewhere? I'd make this change: public int nameToGID(String name) throws IOException

Re: PdfBox Nullpointer error

2016-04-21 Thread Tilman Hausherr
Could you upload the PDF file somewhere? I'd make this change: public int nameToGID(String name) throws IOException { // look up in 'post' table readPostScriptNames(); if (postScriptNames != null) { Integer gid = postScriptNames.get(name);

PdfBox Nullpointer error

2016-04-21 Thread Szirbik Ferenc
Dear PdfBox Developers! I tried to use the PdfBox 2.0, but when i started to print a PDF a NullPointerException had been thrown. Here is te stack trace: java.lang.NullPointerException at org.apache.fontbox.ttf.TrueTypeFont.nameToGID(TrueTypeFont.java:580) at org.apache.pdfbox.pdmodel.