DAMovePage

Direct access functionality, Page manipulation

Description

Moves a page to a new location in the document.

Syntax

Delphi

function TPDFlib.DAMovePage(FileHandle, PageRef, TargetPageRef, Options: Integer): Integer;

ActiveX

Function PDFlib::DAMovePage(FileHandle As Long, PageRef As Long, TargetPageRef As Long, Options As Long) As Long

DLL

int DLDAMovePage(int InstanceID, int FileHandle, int PageRef, int TargetPageRef, int Options);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
PageRefA page reference returned by the DAFindPage or DANewPage functions. This is the page that will be moved.
TargetPageRefA page reference returned by the DAFindPage or DANewPage functions. The page will be moved before or after this page. 0 = Move before target page 1 = Move after target page
Options

Return values

0The page could not be moved. Check that the FileHandle, PageRef and TargetPageRef values are correct.
1The page was moved successfully