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);
参数
| FileHandle | 由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数之一返回的直接访问句柄 |
|---|---|
| NewMode | 0 正常视图,1 大纲窗格,2 缩略图窗格,3 全屏模式,4 可选内容面板,5 附件面板;0..5 之外的值按 0 处理 |
返回值
| 0 | 无法设置页面模式 |
|---|---|
| 1 | 页面模式已成功设置 |