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

Free Support Forum - aspose.com

Access to pages of a PDF does not go beyond page 4


It might be a feature of the evaluation version, but i seem to be unable to get past the first 4 pages of a pdf: (and any other pdf i’ve tried)

Document pdfDocument = new com.aspose.pdf.Document("mydoc.pdf");

PageCollection myPageCollection = pdfDocument.getPages();

int myPageCount = myPageCollection.size();

System.out.printf("Page Count : " + myPageCount);

for(int p =0;p<myPageCount;p++)


Page myCurrentPage = myPageCollection.get_Item(p);


It errors on myCurrentPage after 4 iterations; the doc has many more pages...

Could you confirm that this is behaviour of the evaluation version ?

Is there a way to get a trial license that allows me to temporarily work with the entire document ?


Jan Zeinstra


Hi Jan,

Thanks for your considering Aspose. Yes you are correct it is evaluation limitation. Aspose.Pdf evaluation version has two limitations, evaluation watermark and at most four elements of any collection can be viewed. Please make a request for 30 days temporary license and apply it to evaluate our product without any limitation. Hopefully your issue will be resolved.

Please feel free to contact us for any further assistance.

Best Regards,