try with the attached PDF:
PdfFileInfo pdfFileInfo = new PdfFileInfo(file);
java.lang.ClassCastException: com.aspose.pdf.kit.oe cannot be cast to com.aspose.pdf.kit.my
at com.aspose.pdf.kit.pd.l(Unknown Source)
at com.aspose.pdf.kit.pd.a(Unknown Source)
at com.aspose.pdf.kit.pd.(Unknown Source)
at com.aspose.pdf.kit.pd.(Unknown Source)
at com.aspose.pdf.kit.PdfFileInfo.(Unknown Source)
Running with the latest PDF.kit 4.7.0
Hi Joseph,
Thanks for contacting support.
I have tested the scenario using Aspose.Pdf.Kit for Java and I am able to reproduce the problem. Furthermore, during my testing with Aspose.Pdf for Java 4.1.2, I am getting NullReferenceException
.
For the sake of correction, I have logged it in our issue tracking system as PDFNEWJAVA-33676. We will investigate this issue in details and will keep you updated on the status of a correction.
We apologize for your inconvenience.
P.S., please note that as of April-2013, Aspose.Pdf.Kit for Java has been merged into Aspose.Pdf for Java and the separate release of Aspose.Pdf.Kit for Java will be discontinued in Q3-2013. So please upgrade to MergedAPI release.
Should I start using Aspose.Pdf instead of Aspose.Pdf.Kit? If so is my subscription and license valid for Aspose.Pdf? Just updated a month ago to new subscription.
Thanks,
-Joe
Hi Joseph,
Hi Joseph,