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 Long

DLL

int DLDeletePages(int InstanceID, int StartPage, int PageCount);

Parameters

StartPageThe page number of the first page to delete
PageCountThe 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

0The PageCount parameter was 0 or there was only a single page in the document.
Non-zeroThe number of pages remaining in the original document.