CopyPageRangesEx
Version history
This function was introduced in Quick PDF Library version 9.11.
Description
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 TDebenuPDFLibrary1811.CopyPageRangesEx(DocumentID: Integer;
RangeList: WideString; Options: Integer): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::CopyPageRangesEx(DocumentID As Long,
RangeList As String, Options As Long) As Long
DLL
int DPLCopyPageRangesEx(int InstanceID, int DocumentID, wchar_t * 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 behaviour 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 |