Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Collapse]Document Server
  Product Information
 [Expand]Redistribution and Deployment
 [Expand]Spreadsheet Document Server
 [Expand]XL Export Library
 [Expand]Rich Edit Document Server
 [Expand]Snap Document Server
 [Collapse]PDF Document Processor
   Creating a PDF Document Processor Application
  [Expand]Document Creation API
  [Expand]Interactive Forms
  [Expand]Document Security
  [Expand]Examples
 [Expand]Compression Library
 [Expand]Bar Code Library
 [Expand]Unit Conversion Library
 [Expand]API Reference
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Creating a PDF Document Processor Application

This tutorial describes the first steps to create a PDF processing console application in Visual Studio by using the non-visual PdfDocumentProcessor component.

Important

The Universal Subscription or an additional Document Server Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.

To create a PDF Document Processor application, perform the following steps.

  1. Run Microsoft Visual Studio 2010, 2012, 2013, 2015 or 2017.

  2. Start a new project (CTRL+SHIFT+N) and create a new Console Application. Specify the name of the project, and click OK.

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

  4. Select the DevExpress.Data.v17.1, DevExpress.Docs.v17.1, DevExpress.Pdf.v17.1.Core, and DevExpress.Pdf.v17.1.Drawing assemblies and click OK.

  5. Perform the necessary document processing in the Main method of the application's Program.cs file (Main procedure of the Module1.vb file for Visual Basic).

    For example, the following code opens a sample PDF, rotates its pages and saves the modified document to a new location.

    Show Me

    A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T114305.

    This example illustrates how to use PDF Document Processor for rotating PDF pages.

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

Expanded See Also

How would you rate this topic?​​​​​​​