DAMovePage

直接访问功能、页面操作

描述

将页面移动到文档中的新位置

语法

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);

参数

FileHandle由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数返回的句柄
PageRef由 DAFindPage 或 DANewPage 函数返回的页面引用。这是将被移动的页面
TargetPageRef由 DAFindPage 或 DANewPage 函数返回的页面引用,页面会移至此页之前或之后,0 = 移至目标页之前;1 = 移至目标页之后
Options

返回值

0无法移动页面,请检查 FileHandle、PageRef 和 TargetPageRef 值是否正确
1已成功移动页面