Description
Gets the count of pages in a PDF document.
Applies to
Syntax
long GetPageCount()
Return value
Long. Returns the total number of pages in the PDF document.
Usage
If you call the function for a PDFDocument object, the total number of pages in the object will be returned. If you call the function for a PDFDocExtractor object, get the total number of pages in the PDF file opened by the object will be returned.
Example
The following example gets the count of pages in the current PDFDocument object:
long ll_open,ll_return ll_open = lpdf_extract.open("import\extract_folder1.pdf" ) ll_return = lpdf_extract.getpagecount()
See also
PDFDocument objects:
PDFDocExtractor objects: