PdfPageTreeObject.Rotate Property
Rotates the document page at the specified angle.
Namespace: DevExpress.Pdf
Assembly: DevExpress.Pdf.v18.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value, specifying the page rotation angle (in degrees). |
Example
This example illustrates how to use the PDF Document API component for rotating pages.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-rotate-pdf-pages-t114305
Imports DevExpress.Pdf
Namespace PdfPageRotationExample
Friend Class Program
Shared Sub Main(ByVal args() As String)
Using pdfDocumentProcessor As New PdfDocumentProcessor()
pdfDocumentProcessor.LoadDocument("..\..\docs\TextRotate.pdf")
Dim angle As Integer = 0
For Each page As PdfPage In pdfDocumentProcessor.Document.Pages
angle = (angle + 90) Mod 360
page.Rotate = angle
Next page
pdfDocumentProcessor.SaveDocument("..\..\docs\Rotated.pdf")
End Using
End Sub
End Class
End Namespace
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Rotate property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.