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

Free Support Forum - aspose.com

Getting error while spliting pdf document using latest aspose jar 21.2

Dear Team,

We have Aspose Total Java license & recently we have upgraded Aspose libraries in our application. Now while using the API’s of Aspose PDF java we are getting below exception,
ERROR - At most 4 elements (for any collection) can be viewed in evaluation mode.

class com.aspose.pdf.exceptions.IndexOutOfRangeException: At most 4 elements (for any collection) can be viewed in evaluation mode.
com.aspose.pdf.ADocument.lf(Unknown Source)
com.aspose.pdf.PageCollection.lf(Unknown Source)
com.aspose.pdf.PageCollection.get_Item(Unknown Source)
com.aspose.pdf.facades.APdfFileEditor.lI(Unknown Source)
com.aspose.pdf.facades.APdfFileEditor.extract(Unknown Source)
com.aspose.pdf.facades.PdfFileEditor.extract(Unknown Source)
com.aspose.pdf.facades.APdfFileEditor.extract(Unknown Source)
com.aspose.pdf.facades.PdfFileEditor.extract(Unknown Source)

Regards

@tsipsdev

Would you please try using a hotfix 21.2.1 version. In case issue still persists, please share your license file with us in .zip format along with sample source file and code snippet. We will test the scenario in our environment and address it accordingly. You may share the license file in a private message by clicking over username and pressing the Blue Message Button.