Orientation
打印、VCL、文档创建
描述
作业的页面方向,默认为 poPortrait
poLandscape 会交换已配置的纸张尺寸:PageWidthPoints 返回 PaperHeight,PageHeightPoints 返回 PaperWidth,页面画布也按此确定尺寸
语法
Delphi
Property TPDFlibPrinter.Orientation: TPrinterOrientation Default poPortrait;备注
作业处于活动状态时给该属性赋值会抛出 EPDFlibPrinter,因此一个作业的所有页面只能使用同一种方向
无论何种方向,PaperWidth 与 PaperHeight 都保持其纵向取值