We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error in PDF Concatenation

I am using pdf kit 4.4.0 . Getting following exception when i try to concatenate attached files. I am using PdfFileEditor.concatenate(InputStream[] , OutStream) method .


I am attaching two files . Problematic file is 6003_DIAT_000003216634_0513444059.pdf . If i try to attach this to any file i get this error .

Thanks

Srini



Exception in thread "main" java.lang.ClassCastException: com.aspose.pdf.kit.nn cannot be cast to com.aspose.pdf.kit.lu

at com.aspose.pdf.kit.h.b(Unknown Source)

at com.aspose.pdf.kit.h.(Unknown Source)

at com.aspose.pdf.kit.pb.f(Unknown Source)

at com.aspose.pdf.kit.pa.e(Unknown Source)

at com.aspose.pdf.kit.Form.(Unknown Source)

at com.aspose.pdf.kit.PdfFileEditor.a(Unknown Source)

at com.aspose.pdf.kit.PdfFileEditor.concatenate(Unknown Source)

at com.aspose.pdf.kit.PdfFileEditor.concatenate(Unknown Source)

at com.docnymbus.utils.AsposePDFMerger.merge(AsposePDFMerger.java:72)

at com.docnymbus.utils.AsposePDFMerger.main(AsposePDFMerger.java:93)

Hi Srini,


Thanks for using our products.<o:p></o:p>

I have tested the scenario and I am able to notice the same problem. For the sake of correction, I have logged this issue as PDFKITJAVA-33293 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.