ImageEn, unit iexUserInteractions

TIEPdfViewerInteraction.PageRotation

TIEPdfViewerInteraction.PageRotation


Declaration

property PageRotation[Index: Integer]: TIEPdfPageRotation;


Description

Rotates a page of the current document.

Notes:
- Setting PageRotation will modify the document. To rotate the view only (of whole document), use ViewRotation
- DocModified will be true after setting PageRotation


Demo

Demo  Demos\Other\PdfViewer\PdfViewer.dpr


Examples

// Rotate current page only (updating the document)
ImageEnView1.PdfViewer.PageRotation[ ImageEnView1.PdfViewer.PageIndex ] := iepr90Clockwise;

// Flip the entire document
ImageEnView1.LockUpdate();
for i := 0 to ImageEnView1.PdfViewer.PageCount -1 do
  ImageEnView1.PdfViewer.PageRotation[ i ] := iepr180;
ImageEnView1.UnlockUpdate();