Quick PDF logo

CopyPageRanges

Extraction, Page manipulation

Description

Use this function to copy one or more pages from one document to another.

Syntax

Delphi

function TQuickPDF0813.CopyPageRanges(DocumentID: Integer; 
  RangeList: WideString): Integer;

ActiveX

Function QuickPDF0813.PDFLibrary::CopyPageRanges(DocumentID As Long,
  RangeList As String) As Long

DLL

int QuickPDFCopyPageRanges(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

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum