ExtractPageRanges

Document manipulation, Extraction, Page manipulation

Description

Use this function to extract one or more non-consecutive pages from a document to a new document.

Syntax

Delphi

function TPDFlib.ExtractPageRanges(Const RangeList: WideString): Integer;

ActiveX

Function PDFlib::ExtractPageRanges(RangeList As String) As Long

DLL

int DLExtractPageRanges(int InstanceID, wchar_t * RangeList);

Parameters

RangeListThe pages to extract, for example "10,15,18-20,25-35". Invalid characters and duplicate page numbers in the string will be ignored. Reversed page ranges such as "5-1" will be accepted. The list of pages will be sorted resulting in the pages being extracted in numerical order.

Return values

0The page extraction did not succeed. The original document remains as the selected document.
1The page extraction was successful. The new document containing the selected pages is now the selected document.