CopyPageRangesExA
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 CopyPageRangesEx and string arguments are interpreted using the current SetAnsiMode code page
Use this function to copy one or more pages from one document to another. It is functionality identical to the CopyPageRanges function but adds an option to allow the page list to contain duplicate page numbers and a different page order to the original document.
Syntax
Delphi
Function DLCopyPageRangesExA(InstanceID, DocumentID: Integer; RangeList: PAnsiChar; Options: Integer): Integer;
DLL
int DLCopyPageRangesExA(int InstanceID, int DocumentID, const char * RangeList, int Options);
Parameters
| DocumentID | The ID of the document to copy the pages from |
|---|---|
| RangeList | The pages to extract, for example "10,15,18-20,25-35". Invalid characters in the string will be ignored. |
| Options | 0 = Identical behavior to the CopyPageRanges function. The page list is sorted and duplicate page numbers are ignored. 1 = Do not sort the page list and allow duplicate page numbers |
Return values
| 0 | The specified DocumentID was not valid or was the same as the selected document, or the RangeList was invalid |
|---|---|
| 1 | The pages were successfully copied from the specified document to the selected document |