ExtractPages

Extraction, Page manipulation

Description

Copies the selected document to a new document, but retains only the specified pages.

If successful, the new document will be selected and the original document will be removed from memory.

Syntax

Delphi

function TPDFlib.ExtractPages(StartPage, PageCount: Integer): Integer;

ActiveX

Function PDFlib::ExtractPages(StartPage As Long, PageCount As Long) As Long

DLL

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

Parameters

StartPageThe page number of the first page to extract
PageCountThe total number of pages to extract

Return values

0Failed, use LastErrorCode for further details
1Success