CopyPageRanges
Extraction, Page manipulation
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 TPDFlib.CopyPageRanges(DocumentID: Integer; Const RangeList: WideString): Integer;ActiveX
Function PDFlib::CopyPageRanges(DocumentID As Long, RangeList As String) As LongDLL
int DLCopyPageRanges(int InstanceID, int DocumentID, wchar_t * RangeList);Parameters
| DocumentID | The ID of the document to copy the pages from 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. |
|---|---|
| RangeList |
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 |