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

Free Support Forum - aspose.com

PdfFileEditor ClassCastException

These two lines of Java:

PdfFileEditor pdfFileEditor = new PdfFileEditor();
pdfFileEditor.concatenate("red.pdf","white.pdf","blue.pdf");

Are causing this error:

java.lang.ClassCastException: com.aspose.pdf.kit.iq

The red.pdf and white.pdf files are form-filled and flattened.

Thanks. -David

Hi David,

Can you please make sure that you’re using the latest version of the Aspose.Pdf.Kit for Java? If you still find the same issue with the latest version then please share the input PDF files with us, so we could test this issue at our end. You’ll be updated with the results accordingly.

We’re sorry for the inconvenience.
Regards,