Aspose.Pdf 2.7.0.
Code:
Workbook wb = new Workbook();
wb.loadData(stream);
wb.save("temp.xml", FileFormatType.ASPOSE_PDF);
Pdf pdf = new Pdf();
pdf.setTruetypeFontDirectoryPath("c:\\fonts"); // directory contains empty sub-directory
pdf.bindXML("temp.xml", null);
pdf.save("temp.pdf");
Stack trace:
java.lang.NullPointerException
at aspose.pdf.pdftext.Aax.b(SourceFile:256)
at aspose.pdf.pdftext.Acb.a(SourceFile:593)
at aspose.pdf.xml.Abo.b(SourceFile:269)
at aspose.pdf.xml.Ack.a(SourceFile:476)
at aspose.pdf.xml.Aca.a(SourceFile:759)
at aspose.pdf.xml.Aaq.a(SourceFile:105)
at aspose.pdf.xml.Aaz.a(SourceFile:112)
at aspose.pdf.Pdf.save(SourceFile:911)