Description
Removes a page from the PDF document.
Applies to
Syntax
long RemovePage(PDFPage page)
long RemovePage(long index)
Argument |
Description |
---|---|
page |
The PDFPage object to be removed from the document. |
index | The page index in the PDF document at which the page shall be removed. |
Return value
Long. Returns 1 if it succeeds. If an error occurs, returns the Error Codes. Otherwise, returns null.
Usage
Call the function to remove a page from the PDF document. You may either specify the PDFPage object and remove it, or specify the index at which the PDFPage object exists and then remove it.
Examples
The following example removes the PDFPage object with index = 1:
//Remove the PDFPage object with index = 1 lpdf_doc.removepage(1)
The following example removes the specified PDFPage object:
//Remove lpdf_page lpdf_doc.removepage(lpdf_page)
See also