ExtractPageRangesA

Document manipulation, Extraction, Page manipulation

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to ExtractPageRanges and string arguments are interpreted using the current SetAnsiMode code page

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

Syntax

Delphi

Function DLExtractPageRangesA(InstanceID: Integer; RangeList: PAnsiChar): Integer;

DLL

int DLExtractPageRangesA(int InstanceID, const char * 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