property PageBounds: TPdfRectangle; // read only
返回当前页面的包围矩形,单位为 PDF 用户空间点。要查询特定的页面框(MediaBox、CropBox、BleedBox、TrimBox 或 ArtBox),请调用 GetPageBox
该属性只读;要修改当前页面上的某个页面框,请给 PageBox[Box] 赋值或调用 SetPageBox
坐标和尺寸以 PDF 用户空间点报告。要转换为目标 DPI 的像素,使用 PointsToPixels(Value, DPI) 或等效辅助函数
Pdf1.Page;切换当前页面会透明地更新此处返回的值Active 为 False 时,属性返回 0、空矩形或默认枚举元素
var
R: TPdfRectangle;
begin
if Pdf1.Active then
begin
R := Pdf1.PageBounds;
Memo1.Lines.Add(Format('%.2f x %.2f pt', [R.Right - R.Left, R.Top - R.Bottom]));
end;
end;