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