property PageBounds: TPdfRectangle; // read only
Returns the bounding rectangle of the current page in PDF user-space points. To query one specific box (MediaBox, CropBox, BleedBox, TrimBox or ArtBox), call GetPageBox
This property is read-only; to alter one page box on the current page, assign to PageBox[Box] or call SetPageBox
Coordinates and dimensions are given in PDF user-space points. To convert to pixels for a target DPI, use PointsToPixels(Value, DPI) or the equivalent helpers
Pdf1.Page; switching the current page transparently refreshes the values returned hereActive set to False, the property yields 0, an empty rectangle or the default enum element
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;