Document Rotation
The PdfViewer provides options for rotating the pages of the loaded document through the buttons in the toolbar.
To rotate the document in code, use the SetRotationAngle
method of RadPdfViewer
or the commands of RotateClockwiseCommandDescriptor
and RotateCounterClockwiseCommandDescriptor
.
Rotate the document by using the SetRotationAngle method
this.pdfViewer.SetRotationAngle(RotationAngle.Degrees180);
Rotate the document by using the command descriptor
this.pdfViewer.CommandDescriptors.RotateClockwiseCommandDescriptor.Command.Execute(null);
RotationAngle
property of the RadPdfViewer
.
Get the rotating angle
RotationAngle angle = this.pdfViewer.RotationAngle;