SetPageDimensions
页面属性、页面布局
描述
设置所选页面的大小
此函数更新表示页面物理介质的 MediaBox 条目,并且仅影响随后添加到页面的内容。此函数不会调整页面已有内容的大小
语法
Delphi
Function TPDFlib.SetPageDimensions(NewPageWidth, NewPageHeight: Double): Integer;
ActiveX
Function PDFlib::SetPageDimensions(NewPageWidth As Double, NewPageHeight As Double) As Long
DLL
int DLSetPageDimensions(int InstanceID, double NewPageWidth, double NewPageHeight);
参数
| NewPageWidth | 页面的新宽度 |
|---|---|
| NewPageHeight | 页面的新高度 |
返回值
| 0 | 无法设置页面大小。这不应发生。页面已成功调整大小 |
|---|---|
| 1 |