DeletePages
Page manipulation
Description
Removes one or more pages from the document. The document will always have at least one page.
Syntax
Delphi
function TPDFlib.DeletePages(StartPage, PageCount: Integer): Integer;ActiveX
Function PDFlib::DeletePages(StartPage As Long, PageCount As Long) As LongDLL
int DLDeletePages(int InstanceID, int StartPage, int PageCount);Parameters
| StartPage | The page number of the first page to delete |
|---|---|
| PageCount | The total number of pages to delete. The value will be automatically adjusted if necessary so that the document is left with at least one page. |
Return values
| 0 | The PageCount parameter was 0 or there was only a single page in the document. |
|---|---|
| Non-zero | The number of pages remaining in the original document. |