GetPageCount
PowerScript function
Description
Gets the count of pages in a PDF document.
Applies to
PDFDocument object in Objects and Controls
PDFDocExtractor object in Objects and Controls
Syntax
|
1 |
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 in Objects and Controls, the total
number of pages in the object will be returned. If you call the function
for a PDFDocExtractor object in Objects and Controls, 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:
|
1 2 3 |
long ll_open,ll_return ll_open = lpdf_extract.open("importextract_folder1.pdf" ) ll_return = lpdf_extract.getpagecount() |
See also
PDFDocument objects:
PDFDocExtractor objects:
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest