Aspose.PDF 26.9.0

Prefix Reserved
dotnet add package Aspose.PDF --version 26.9.0
                    
NuGet\Install-Package Aspose.PDF -Version 26.9.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspose.PDF" Version="26.9.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspose.PDF" Version="26.9.0" />
                    
Directory.Packages.props
<PackageReference Include="Aspose.PDF" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Aspose.PDF --version 26.9.0
                    
#r "nuget: Aspose.PDF, 26.9.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Aspose.PDF@26.9.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Aspose.PDF&version=26.9.0
                    
Install as a Cake Addin
#tool nuget:?package=Aspose.PDF&version=26.9.0
                    
Install as a Cake Tool

.NET API to Process & Manipulate PDF Files

Version 26.9.0 NuGet .NET

banner


Product Page Docs API Ref Examples Blog Releases Support License


Aspose.PDF for .NET is a comprehensive library empowering developers to seamlessly integrate robust PDF manipulation capabilities into their .NET applications. From basic operations like adding images and annotations to advanced features like form creation, PDF conversion, and security implementation, Aspose.PDF streamlines PDF workflows across various platforms, including Windows, macOS, Linux, and even web environments like ASP.NET. With support for a wide array of file formats and compatibility across major .NET frameworks, Aspose.PDF is the go-to solution for .NET developers seeking to elevate their PDF handling capabilities without relying on external software.

Basic Operations

Add Images to PDF

Insert images into existing PDF documents, supporting formats like JPEG, PNG, and GIF to enhance visual content.

Add Annotations

Place interactive annotations such as comments, highlights, and text notes for better document collaboration and user interaction.

Text and Image Stamps

Embed custom text or image stamps like watermarks, page numbers, or classification tags to enhance document branding or security.

JavaScript Actions

Integrate JavaScript within PDFs to automate actions, such as form validation, field auto-fill, or user interaction prompts.

Watermark PDFs

Add single or multi-line watermarks with adjustable transparency and positioning to protect or label PDFs.

Add Page Elements

Draw shapes (lines, rectangles) or insert digital signatures onto PDF pages to enhance document layout or add verification.

Page Numbering

Dynamically add page numbers in headers, footers, or any part of the PDF to organize and format multi-page documents.

Concatenate and Split PDFs

Merge multiple PDFs into a single document or split large PDFs into smaller ones based on specific page ranges for easier management.

Working with Forms

AcroForms

Create, fill, and manipulate AcroForms in PDF documents. This includes adding new form fields, filling form data, and extracting or removing fields programmatically.

Decorate Form Fields

Customize form fields by setting appearances like borders, background color, and font settings to enhance the user experience.

Autofill Forms

Automatically populate form fields based on predefined values or data sources, saving time and reducing manual errors.

Copy Form Fields

Programmatically duplicate inner and outer form fields to maintain consistent form layouts and content across documents.

XFA Forms

Fill out XML-based XFA forms, convert XFA forms into standard AcroForms, and retrieve or manipulate XFA field properties for improved compatibility.

PDF Document Operations

Create and Manipulate PDF Documents

Generate new PDF documents, retrieve and set document properties, and embed fonts for accurate rendering across platforms.

Add, update, and navigate using bookmarks and internal/external links for better document navigation.

Change Page Size and Rotation

Modify the dimensions of existing PDF pages and rotate pages programmatically to ensure proper orientation.

Crop Pages

Adjust the visible area of a PDF page by cropping, which helps focus on specific content in a document.

Working with Tables

Add and format tables within PDFs, including row and column management, for structured data presentation.

Working with Lists

Programmatically create ordered and unordered lists, allowing for clear and organized content in PDF documents.

Optimize PDF

Compress images, remove unused objects, and reduce file size for better performance and storage efficiency.

Convert PDF to Other Formats

Convert PDF to Word

Transform PDF documents into editable Word formats (DOC/DOCX), retaining the layout and content structure.

Convert PDF to Excel

Extract tables and data from PDFs into Excel (XLSX) format for further data manipulation and analysis.

Convert PDF to PowerPoint

Convert PDF files into PowerPoint presentations (PPTX) while preserving formatting and content alignment.

Convert PDF to HTML

Convert PDF files to HTML, maintaining the original design and layout for web integration.

Convert PDF to Images

Export each page of a PDF as an image in formats like PNG, JPEG, or TIFF for easy viewing or processing.

Convert PDF to PDF/A

Convert standard PDF documents into the PDF/A format for long-term archiving.

Convert PDF to EPUB, LaTeX, Text, XPS

Convert PDF files to various other formats like EPUB for eBooks, LaTeX for scientific documentation, plain text, and XPS for sharing and printing.

Security and Encryption

Encrypt PDF Files

Secure your PDF documents by applying encryption using passwords or certificates.

Decrypt PDF Files

Remove encryption or access encrypted PDF files by providing the correct password or decryption key.

Change Password

Programmatically update or reset the password protection on PDF files.

Verify Digital Signatures

Verify the authenticity and integrity of PDF documents by checking the digital signatures applied to them.

Advanced PDF Features

Working with JavaScript in PDF

Integrate and manipulate JavaScript within PDF documents to enable dynamic user interactions or automated processes.

Attach Files and Annotations

Programmatically add file attachments and annotations to PDF documents for enhanced document interaction and collaboration.

Tagged PDFs

Work with tagged PDF files to improve accessibility and structure, enabling easier navigation and compliance with accessibility standards.

Manipulate Metadata, XMP, and Document Properties

Modify and manage document metadata, XMP properties, and other attributes for enhanced document control.

Facades and Utilities

Facade Classes for PDF Manipulation

Simplify common PDF operations using facade classes such as PdfFileEditor, PdfFileMend, PdfContentEditor, and PdfAnnotationEditor.

Working with Attachments, Bookmarks, and Annotations

Manage PDF bookmarks, attachments, and annotations using facade classes like PdfBookmarkEditor and PdfAnnotationEditor.

PDF Printing

Utilize the PdfViewer class to manage PDF printing tasks programmatically, controlling settings such as page range and printer selection.

Platform-Specific Implementations

ASP.NET without Visual Studio

Implement Aspose.PDF for .NET in ASP.NET applications without using Visual Studio, offering flexibility in deployment.

ColdFusion Integration

Use Aspose.PDF for .NET in ColdFusion-based environments, enabling PDF manipulation in web applications.

Integration with Umbraco, DNN, and Sitefinity

Seamlessly integrate PDF functionalities in popular CMS platforms like Umbraco, DotNetNuke (DNN), and Sitefinity.

COM Interoperability

Utilize Aspose.PDF for .NET via COM Interop, supporting ASP, VBScript, JScript, and C++ to enable PDF features in various programming environments.

Supported File Formats

Format Description Load Save
PDF Portable Document Format ✔️ ✔️
CGM Computer Graphics Metafile for 2D vector graphics ✔️
EPUB Ebook file format ✔️ ✔️
HTML HTML Format ✔️ ✔️
TeX LaTex typesetting file format ✔️ ✔️
MHT MHTML Document ✔️
PCL Printer Control Language Files ✔️
PS Postscript Files ✔️
SVG Scalable Vector Graphics (An XML-based vector image format) ✔️ ✔️
XML XML Format ✔️ ✔️
XPS XPS Documents ✔️ ✔️
XSLFO XSL-FO is part of XSL file which is used for XML transformation ✔️
MD Markdown Format ✔️
XLS Saves the document in the Microsoft Excel SpreadSheet ✔️
XLSX Saves the document in the Microsoft Excel 2007 format ✔️
PPTX Saves the document in the Microsoft PowerPoint format ✔️
DOC Saves the document in the Microsoft Word format ✔️
DOCX Saves the document in the Microsoft Word format ✔️
MobiXML Saves the document in eBook MobiXML format ✔️
JPEG Saves the document in JPEG Format ✔️ ✔️
EMF Enhanced metafile format (EMF) ✔️ ✔️
PNG Saves the document in PNG Format ✔️ ✔️
BMP Saves the document in BMP Format ✔️ ✔️
GIF Graphic Interchange Format ✔️
TIFF Saves the document as Single or Multi-Page TIFF Image ✔️ ✔️
Text Save the document in Text Format ✔️ ✔️

System Requirements

Category Details
Overview The API can be used on any OS that supports .NET Standard 2.0+ or .NET Framework 4.0. No need for Adobe Acrobat to produce/manipulate PDFs, but Adobe Acrobat Reader is needed to view them.
Supported OS Windows **Windows Server (2003, 2008, 2012, 2016, 2019, 2020, 2022), Vista, XP, 7, 8, 10, 11, Azure
macOS Mac OS X x64 (10.12+)
Linux Linux x64 (6, 7, 27, 9, 8.7+, 18.04, 16.04, 14.04, 18, 17, 42.3+, 12 SP2+)
Android Android (8.0, 10, 11, 12, 13, 14, 15)
Development Environments Microsoft Visual Studio (2010, 2011, 2012, 2013, 2015, 2017, 2019, 2022)
Supported Frameworks .NET Framework 4.0, .NET Framework 4.8.1, .NET Standard 2.0 (.NET Core 3.1+), .NET 6.0, .NET 7.0, .NET 8.0

How to Install Aspose.PDF for .NET

Aspose.PDF is a .NET component that allows developers to programmatically create and manipulate PDF documents. It supports inserting tables, graphs, images, hyperlinks, and custom fonts. The API works without needing Adobe Acrobat installed and provides features for PDF security and compression.

Evaluate Aspose.PDF for .NET

You can download and evaluate the full-featured Aspose.PDF for .NET with an evaluation watermark and a 4-page limit. To fully test without restrictions, request a 30-day Temporary License.

Installing Aspose.PDF for .NET via NuGet

Install Package using the Package Manager Console:
  1. Open Visual Studio.
  2. Go to Tools > NuGet Package Manager > Package Manager Console.
  3. Type Install-Package Aspose.PDF to install the latest version.
  4. Press Enter.
Update Package:
  1. Open Package Manager Console.
  2. Type Update-Package Aspose.PDF to update to the latest version.
Install Package using the Package Manager GUI:
  1. Open Visual Studio.
  2. Go to