Description
Gets a page in the PDF document.
Applies to
Syntax
PDFPage GetPage(long index)
PDFPage GetPage(string name)
Argument |
Description |
---|---|
index |
The index of the page in the document. The indexes of the pages are auto generated, start from 1, and follow the orders the pages are added. If a page is removed, the indexes will be reordered. |
name | The name of the page in the document. |
Return value
PDFPage object. Returns the PDFPage object if it succeeds, and returns null if it fails..
Example
The following example gets the PDFPage object with the specified index or name:
//Get the PDFPage object with index =1 lpdf_page = lpdf_doc.getpage(1) //Get the PDFPage object with name = page lpdf_page = lpdf_doc.getpage("page")
See also