PDFium Delphi Component Docs

PageWidth property

Component: TPdf  ·  Unit: PDFium
Page-level property — width of the current page in points (1 pt = 1/72 inch)

Syntax

property PageWidth: Double;

Description

Returns the width of the current page in points (1 pt = 1/72 inch). The value is sourced from the page dictionary in the PDF, after any inherited /MediaBox / /CropBox / /Rotate from parent nodes are resolved

This property is read-only; combine with PageHeight and PageBounds to inspect the full geometry of the current page

Coordinates and dimensions are reported in PDF user-space points. To convert to pixels for a target DPI, use PointsToPixels(Value, DPI) or the equivalent helpers

Remarks

Example

if Pdf1.Active then
  Memo1.Lines.Add('PageWidth = ' + FloatToStr(Pdf1.PageWidth));

See Also

PageHeight, PageBounds, PageRotation