[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Collapse]Office File API
  Demo Application
  Redistribution and Deployment
 [Expand]Spreadsheet Document API
 [Expand]Word Processing Document API
 [Collapse]PDF Document API
   Getting Started
   Coordinate Systems
   Document Generation
  [Expand]PDF Graphics
  [Expand]Document Manipulation
  [Expand]Additional Content
  [Expand]Interactive Forms
  [Expand]Text Markup Annotations
  [Expand]Document Security
  [Expand]Examples
 [Expand]Excel Export Library
 [Expand]Snap Report API
 [Expand]Zip Compression and Archive API
 [Expand]Barcode Generation API
 [Expand]Unit Conversion API
 [Expand]API Reference
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Getting Started

Important

The Universal Subscription or an additional Office File API Subscription is required to use this example in production code. Refer to the DevExpress Subscription page for pricing information.

Perform the following steps to get started with the non-visual PDF processing component:

  1. Run Microsoft Visual Studio and create a new Console Application (Net Framework) project.

  2. Right-click References in the Solution Explorer and select Add Reference... in the invoked context menu.

  3. Add references to the following libraries:

    • DevExpress.Data.v19.1;
    • DevExpress.Docs.v19.1;
    • DevExpress.Pdf.v19.1.Core;
    • DevExpress.Pdf.v19.1.Drawing.
  4. Paste the code below in the Main method of the Program.cs file (Main procedure of the Module1.vb file for Visual Basic).

    Note

    A complete sample project is available at https://github.com/DevExpress-Examples/how-to-rotate-pdf-pages-t114305

  5. Run the project. After executing the code above, the pages are rotated and the new document is saved to the specified location.

Expanded See Also

Is this topic helpful?​​​​​​​