SetPageUserUnit
页面属性
描述
对 PDF 应用缩放因子,以定义大于 200x200 英寸的页面尺寸。SetPageDimensions 最多可定义 14040x14400 单位,即使在 PDF 1.6 及更高版本中也是如此。PDF 1.6 及更高版本允许将 1/72" 的 UserUnit 更改为更大的值。例如 SerPageUserUnit(2); 会将页面最大尺寸缩放至 400x400",其中一点实际会缩放为 2 点
如需使用此函数,应确保调用 SetInformation(0, "1.6"); 将 PDF 版本设为至少 1.6
语法
Delphi
Function TPDFlib.SetPageUserUnit(UserUnit: Double): Integer;
ActiveX
Function PDFlib::SetPageUserUnit(UserUnit As Double) As Long
DLL
int DLSetPageUserUnit(int InstanceID, double UserUnit);
参数
| UserUnit | 要应用的缩放系数。所有 PDF's 的默认值均为 1.0 |
|---|