CopyPageRanges
Description
Use this function to copy one or more pages from one document to another.
The pages are copied in sequential order and duplicates are not allowed. To extract pages in a different order to the source document or with duplicate pages the CopyPageRangesEx function can be used.
Syntax
Delphi
function TDebenuPDFLibrary1811.CopyPageRanges(DocumentID: Integer;
RangeList: WideString): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::CopyPageRanges(DocumentID As Long,
RangeList As String) As Long
DLL
int DPLCopyPageRanges(int InstanceID, int DocumentID, wchar_t * RangeList)
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 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
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 |