ClonePages

Page manipulation

Description

Copies pages from the document multiple times, with only a negligible increase in file size. Note that only the first "layer" of the page is cloned. Unless you specifically want to take part of the page you should call CombineContentStreams for all the pages you want to clone before calling this function.

Syntax

Delphi

function TPDFlib.ClonePages(StartPage, EndPage, RepeatCount: Integer): Integer;

ActiveX

Function PDFlib::ClonePages(StartPage As Long, EndPage As Long, RepeatCount As Long) As Long

DLL

int DLClonePages(int InstanceID, int StartPage, int EndPage, int RepeatCount);

Parameters

StartPageThe first page to clone The last page to clone
EndPage
RepeatCountThe number of times to clone the pages

Return values

0The parameters were out of range
1The function was successful