Document Rotation
The PdfViewer control provides functionality for rotating the pages of the loaded document.
The document can be rotated using the buttons in the toolbar component.
To rotate the document in code, you can use the SetRotationAngle
method of RadPdfViewer
or the commands of RotateClockwiseCommandDescriptor
and RotateCounterClockwiseCommandDescriptor
.
Rotating the document using the SetRotationAngle method
this.pdfViewer.SetRotationAngle(RotationAngle.Degrees180);
Rotating the document using the command descriptor
this.pdfViewer.CommandDescriptors.RotateClockwiseCommandDescriptor.Command.Execute(null);
RotationAngle
property of RadPdfViewer
.
Getting the rotating angle
RotationAngle angle = this.pdfViewer.RotationAngle;