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 | 頁面移動成功 |