New to Telerik UI for WinUI? Download free 30-day trial

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); 
The current rotation angle can be accessed with the RotationAngle property of the RadPdfViewer.

Get the rotating angle

RotationAngle angle = this.pdfViewer.RotationAngle; 

See Also

In this article
Not finding the help you need?