Free Support Forum -

Implementation Trouble


I recently purchased the PDF.Kit SDK for Java and I have been having a
lot of trouble with the implementation. I am using the PD4ML SDK to
generate PDF documents from HTML. Intially the trouble was that
something about the way that PD4ML embedded the fonts caused PDF.Kit to
print test as lines, although the actual PDF generated is readable by
Adobe Reader. I upgraded to a newer, more full-featured version of
PD4ML to see if I could correct the problem and I am now getting the
following exception.

The PDF file to be printed is attached (I apologize for the contents of
the PDF, this is a Healthcare solution). Just to be clear, though, we
are printing directly from a stream and not a File. Can someone please
point me in the right direction?

Null Pointer Exception at

com.aspose.pdf.kit.f9.H(Unknown Source)

com.aspose.pdf.kit.f9.a(Unknown Source)

com.aspose.pdf.kit.PdfViewer.openPdfFile(Unknown Source)








Thanks for considering Aspose.

This error maybe occur because of your Pdf Document. However please post your codes too which to call the printing function, then we will test the document and give you reply ASAP.

Code Attached

Thanks for considering Aspose.

I tested your pdf file and viewed your file. Your using print code is correct. It is our software problem that you cannot print the test.pdf . Because the pdf specification is very large, we completed about 85% of pdf 1.6 specification in the print and view function. We will soon solve the problem in the next version.

We tested your pdf file, and translated it which can been printed with we software.

The translated file attached here. -----test.pdf