PDFiumPas 文件

PageRotation 屬性

元件: TPdf  ·  單元: PDFium
頁面層級屬性 — 繪製時套用到目前頁面的旋轉(ro0 / ro90 / ro180 / ro270)

Syntax

property PageRotation: TRotation;

Description

Returns the rotation applied to the current page when rendering (ro0 / ro90 / ro180 / ro270). The value is sourced from the page dictionary in the PDF, after any inherited /MediaBox / /CropBox / /Rotate from parent nodes are resolved.

Read-only unless the property name implies a writer (such as Page or PageRotation); assigning to read-only properties has no effect.

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('PageRotation = ' + VarToStr(Pdf1.PageRotation));

See Also

Page, UpdatePage, PageBox