SetPageBoxRange

页面属性

描述

将一个边界框应用于页面范围表达式选中的每个页面

语法

Function TPDFlib.SetPageBoxRange(Const PageRange: WideString; BoxType: Integer; Left, Top, Width, Height: Double): Integer;

参数

PageRange从 1 开始的范围,例如 1-3,7;空字符串表示所有页面
BoxType1 = MediaBox 2 = CropBox 3 = BleedBox 4 = TrimBox 5 = ArtBox;1 到 5 之外的值会拒绝该调用
Left矩形左边缘的水平坐标
Top矩形上边缘的垂直坐标
Width矩形宽度
Height矩形高度

返回值

返回已更新的页面数量

备注

范围只解析一次,遵循文档坐标设置,并恢复所选页面

另请参阅

SetPageBox, RemovePageBoxRange