DASetPageSize
直接访问功能、页面属性
描述
将指定页面设置为具有指定宽度和高度
语法
Delphi
Function TPDFlib.DASetPageSize(FileHandle, PageRef: Integer; PntWidth, PntHeight: Double): Integer;
ActiveX
Function PDFlib::DASetPageSize(FileHandle As Long, PageRef As Long, PntWidth As Double, PntHeight As Double) As Long
DLL
int DLDASetPageSize(int InstanceID, int FileHandle, int PageRef, double PntWidth, double PntHeight);
参数
| FileHandle | 由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数返回的句柄 |
|---|---|
| PageRef | DAFindPage 或 DANewPage 函数返回的页面引用 |
| PntWidth | 页面的新宽度,以点为单位 |
| PntHeight | 以磅为单位测量的页面新高度 |
返回值
| 0 | 指定的 FileHandle 或 PageRef 无效 |
|---|---|
| 1 | 页面大小已成功设置 |