PDFium Delphi Component Docs

PageRotation property

Component: TPdf  ·  Unit: PDFium
Page-level property — rotation applied to the current page when rendering (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 comes from the page dictionary in the PDF, after any inherited /MediaBox / /CropBox / /Rotate from parent nodes are resolved

Read/write property — assigning a fresh TRotation value updates the /Rotate entry of the current page in memory (call SaveAs to persist it)

Remarks

Example

if Pdf1.Active then
  Memo1.Lines.Add('PageRotation = ' + IntToStr(Ord(Pdf1.PageRotation)));

See Also

Page, UpdatePage, PageBox