Get Page Count of PDF in Python
Contents
[
Hide
]
To get page count of Pdf document using Aspose.PDF Java for Python, simply invoke GetNumberOfPages class.
Python Code
doc= self.Document()
pdf = self.Document()
pdf=self.dataDir + 'input1.pdf'
page_count = pdf.getPages().size()
print "Page Count:" . page_count
Download Running Code
Download Get Page Count (Aspose.PDF) from any of the below mentioned social coding sites: