PDF Document page count


Hello, i just wonder if there is any possibility to obtain a page count of PDF document so I can insert logo stamp into all pages. Thank You



Thanks for considering Aspose.

PdfFileInfo can retrieve the page count, please refer to http://www.aspose.com/Products/Aspose.Pdf.Kit/Api/Aspose.Pdf.Kit.PdfFileInfo.NumberofPages.html

If you need to add logo to all pages, let the Pages property of stamp remains null. By default, Pages equal to null indicates that stamp is added on each page.