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 LongDLL
int DLDAMovePage(int InstanceID, int FileHandle, int PageRef, int TargetPageRef, int Options);Parameters
| FileHandle | A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions |
|---|---|
| PageRef | A page reference returned by the DAFindPage or DANewPage functions. This is the page that will be moved. |
| TargetPageRef | A 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
| 0 | The page could not be moved. Check that the FileHandle, PageRef and TargetPageRef values are correct. |
|---|---|
| 1 | The page was moved successfully |