NPE in PDTrueTypeFont.loadTTF(null, nameOfFont)
-----------------------------------------------
Key: PDFBOX-1040
URL: https://issues.apache.org/jira/browse/PDFBOX-1040
Project: PDFBox
Issue Type: Bug
Components: PDModel
Affects Versions: 1.4.0
Environment: JDK 1.6.0_025, Windows 7 64 Bit
Reporter: MH
Calling PDTrueTypeFont.loadTTF() or new PDType1AfmPfbFont() with the first
parameter (Document) set as null results in a NullPointerException! I set
document as null as I don't want the font to be embedded in the document. As I
don't see any other constructor for creating fonts omitting the document, I
expect to set it to null if I don't want the font to get embedded.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira