DASetPageMode

文件屬性、直接存取功能

描述

以 Direct Access 功能設定文件的初始頁面模式。選擇模式 4(/UseOC)時,儲存的文件會提升到 PDF 1.5;選擇模式 5(/UseAttachments)時,提升到 PDF 1.6。

語法

Delphi

Function TPDFlib.DASetPageMode(FileHandle: Integer; NewMode: Integer): Integer;

ActiveX

Function PDFlib::DASetPageMode(FileHandle As Long, NewPageMode As Long) As Long

DLL

int DLDASetPageMode(int InstanceID, int FileHandle, int NewPageMode);

參數

FileHandleDAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 其中一個函式傳回的直接存取控制代碼
NewMode0 標準檢視,1 大綱窗格,2 縮圖窗格,3 全螢幕模式,4 選用內容面板,5 附件面板;0..5 以外的值一律視同 0

傳回值

0無法設定頁面模式
1頁面模式設定成功