Hi,
We are using Pdf.Kit and are aware of the fact that we will have to migrate to Aspose.Pdf shortly.
Currently however we're still using Pdf.Kit and have the following issue:
When concatenating two Pdf files (streams) we get the following message:
com.aspose.pdf.kit.nj cannot be cast to com.aspose.pdf.kit.md
The stack trace is not very infomative since the class names are obscurified:
at com.aspose.pdf.kit.oi.l
at com.aspose.pdf.kit.oi.a
at com.aspose.pdf.kit.oi.<init>
at com.aspose.pdf.kit.oi.<init>
at com.aspose.pdf.kit.Form.<init>
at com.aspose.pdf.kit.PdfFileEditor.a
at com.aspose.pdf.kit.PdfFileEditor.concatenate
This it the calling method that causes the exception:
public static void concatenatePDF(InputStream stream1, InputStream stream2, OutputStream out) throws Exception
{
try
{
PdfFileEditor editor = new PdfFileEditor();
editor.concatenate( stream1, stream2, out);
}
finally
{
out.close();
}
}
We are using Pdf.Kit version 4.4.0
Kind Regards,
Wim Roeling
ADP, Amsterdam, The Netherlands
We are using Pdf.Kit and are aware of the fact that we will have to migrate to Aspose.Pdf shortly.
Currently however we're still using Pdf.Kit and have the following issue:
When concatenating two Pdf files (streams) we get the following message:
com.aspose.pdf.kit.nj cannot be cast to com.aspose.pdf.kit.md
The stack trace is not very infomative since the class names are obscurified:
at com.aspose.pdf.kit.oi.l
at com.aspose.pdf.kit.oi.a
at com.aspose.pdf.kit.oi.<init>
at com.aspose.pdf.kit.oi.<init>
at com.aspose.pdf.kit.Form.<init>
at com.aspose.pdf.kit.PdfFileEditor.a
at com.aspose.pdf.kit.PdfFileEditor.concatenate
This it the calling method that causes the exception:
public static void concatenatePDF(InputStream stream1, InputStream stream2, OutputStream out) throws Exception
{
try
{
PdfFileEditor editor = new PdfFileEditor();
editor.concatenate( stream1, stream2, out);
}
finally
{
out.close();
}
}
We are using Pdf.Kit version 4.4.0
Kind Regards,
Wim Roeling
ADP, Amsterdam, The Netherlands