property PageRotation: TRotation;
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)
Pdf1.Page; switching the current page transparently refreshes the values returned hereActive is False the property returns 0, an empty rectangle, or the default enum element
if Pdf1.Active then
Memo1.Lines.Add('PageRotation = ' + IntToStr(Ord(Pdf1.PageRotation)));