DASetPageLayout
文档属性、直接访问功能
描述
使用 Direct Access 功能设置文档的初始页面布局,双页布局(值 4 和 5)会将保存的文档提升至 PDF 1.5
语法
Delphi
Function TPDFlib.DASetPageLayout(FileHandle: Integer; NewLayout: Integer): Integer;
ActiveX
Function PDFlib::DASetPageLayout(FileHandle As Long, NewPageLayout As Long) As Long
DLL
int DLDASetPageLayout(int InstanceID, int FileHandle, int NewPageLayout);
参数
| FileHandle | 由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数之一返回的直接访问句柄 |
|---|---|
| NewLayout | 0 单页,1 单列,2 双列(奇数页在左),3 双列(奇数页在右),4 双页(奇数页在左),5 双页(奇数页在右),6 无首选项(移除该条目);0..6 之外的值按 0 处理 |
返回值
| 0 | 无法设置页面布局 |
|---|---|
| 1 | 已成功设置页面布局 |