The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.

How to: Rotate Pages


You require a license to the DevExpress Office File API or DevExpress Universal Subscription to use these examples in production code. Refer to the DevExpress Subscription page for pricing information.

This example illustrates how to use the PDF Document API component to rotate pages.


A complete sample project is available at

using DevExpress.Pdf;

namespace PdfPageRotationExample

    class Program {
        static void Main(string[] args)
            using (PdfDocumentProcessor pdfDocumentProcessor = new PdfDocumentProcessor())
                int angle = 0;
                foreach (PdfPage page in pdfDocumentProcessor.Document.Pages) {
                    angle = (angle + 90) % 360;
                    page.Rotate = angle;
See Also