PDFium Delphi Component Docs

GetPageBox method

Component: TPdf  ·  Unit: PDFium
Reads the rectangle of the named page box on the current page

Syntax

function GetPageBox(Box: TPdfPageBox): TPdfRectangle;

Description

Fetches the rectangle of the named page box for the current page

Gives an empty rectangle when the box is neither defined nor inherited from a parent

Wraps the matching PDFium API and surfaces it as a TPdf instance member, so you never have to juggle raw FPDF_DOCUMENT handles yourself

Remarks

Example

if Pdf1.Active then
  R := Pdf1.GetPageBox(pbMedia);

See Also

SetPageBox, PageBox, PageBounds