IronPDF Features
IronPDF is a .NET library allowing developers to create, edit, and export PDF documents.
Compatibility
.NET Versions
- C# (Generate and Edit PDFs in C#)
- Generate and edit PDFs in C# with HTML, MVC, ASPX, & images.
- VB.NET (Generate and Edit PDFs in VB.NET)
- Generate and edit PDFs in VB.NET with HTML, MVC, ASPX, & images.
- F# (Generate and Edit PDFs in F#)
- Generate and edit PDFs in F# with HTML, MVC, ASPX, & images.
- .NET Core (8, 7, 6, 5, and 3.1+)
- IronPDF is available for .NET 5, 6, 7, and 8. (Using IronPDF with .NET 5 and Above)
- Available also for .NET Core 2 and 3.1+. (Using IronPDF with .NET Core 2 and 3.1+)
- The current .NET Core release supports Linux, Unix, and macOS client operating systems as well as Mono.
- A future release will support Mono and Xamarin mobile environments.
- .NET Standard (2.0+)
- Compatible with .NET Standard 2.0 and upwards.
- .NET Framework (4.6.2+) (Generate PDFs with .NET Framework)
- Generate and manipulate PDFs with .NET Framework 4.6.2 and upwards.
.NET Project Types
Tutorial on IronPDF for .NET Projects | IronPDF API Reference
- Web
- Utilize IronPDF in web applications.
- Desktop
- Utilize IronPDF in desktop applications.
- Console
- Utilize IronPDF in console applications.
App Environments
- Windows (10+, Server UI 2012+, Server Core 2022) (Creating Applications on Windows with IronPDF)
- Create any application using IronPDF on Windows.
- Linux (Ubuntu, Debian, CentOS, etc.) (Creating Applications on Linux with IronPDF)
- Create any application using IronPDF on Linux.
- Mac (macOS 10+) (Creating Applications on macOS with IronPDF)
- Create any application using IronPDF on macOS.
- Docker (Windows, Linux, Azure) (Creating Applications on Docker with IronPDF | IronPDF API Reference for Docker)
- Create any application using IronPDF on Docker.
- IronPDF Docker Container for PDF creation, writing, editing, and reading. (How to Use IronPDF with Docker)
- Azure (VPS, WebApp, Function) (Creating Applications on Azure with IronPDF)
- Create any application using IronPDF on Azure.
- AWS (EC2, Lambda) (Creating PDF with IronPDF on AWS)
IDEs
- Microsoft Visual Studio (Installing IronPDF in Visual Studio | IronPDF API Reference)
- JetBrains Rider & ReSharper
OS & Processors
- Windows, Mac, Linux
- x64, x86, ARM
Binary Certification
- DigiCert Signed Binaries
- DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1
Generating PDFs
HTML to PDF
- HTML File to PDF (Converter Tutorial | Code Examples for File to PDF | Generating PDF from HTML Pages | API Reference for Rendering HTML File to PDF)
- Convert HTML files including images, JavaScript, and CSS to PDF.
- HTML String to PDF (How to Convert HTML String to PDF | Code Example for Using HTML to Create a PDF | HTML to PDF Walkthrough | API Reference for Rendering HTML String to PDF)
- Convert HTML strings including images, JavaScript, and CSS to PDF.
- URL to PDF (How to Convert URL to PDF | Code Example for Converting URL to PDF | Export PDF Using Existing HTML URL | API Reference for Rendering URL to PDF)
- Convert URL webpages to PDFs.
Content Pages to PDF
- Razor to PDF (Blazor Server) (How to Convert Razor to PDF in Blazor Server | Code Example for Razor to PDF)
- Convert Razor to PDF in Blazor Server.
- CSHTML to PDF (MVC, Razor) (How to Convert Razor Pages to PDFs | Code Example for Razor Pages to PDF)
- Convert Razor Pages to PDFs in ASP.NET Core Web App.
- Convert Views to PDFs in ASP.NET MVC Core. (How to Convert Views in MVC Core | Code Example for Views to PDF in MVC Core)
- Convert Views to PDFs in ASP.NET MVC Framework. (How to Convert Views in MVC Framework | Code Example for Views to PDF in MVC Framework)
- ASPX to PDF (WebForms) (How to Convert ASPX Pages to PDF | Code Example for Rendering ASPX Pages as PDF)
- ASPX Pages to PDF in ASP.NET.
- XAML to PDF (MAUI) (How to Convert XAML to PDF in MAUI | Code Example for XAML to PDF)
- Convert XAML to PDF in MAUI.
PDF File Conversion
- Image to PDF (How to Convert Image to PDF | Code Example for Image to PDF | API Reference for Image to PDF Conversion)
- Turn image files into pages of a PDF document.
- Image from PDF (How to Rasterize PDF to Images | Code Example for Rasterizing PDF | PDF to Image Conversion Tutorial | API Reference for Rasterizing PDF to Images)
- Rasterize a PDF's pages into images.
- DOCX to PDF (Microsoft Word) (How to Convert DOCX to PDF | Code Example for DOCX to PDF | API Reference for DOCX to PDF Conversion)
- Will render a Word file or string to a PDF with HTML formatting.
- RTF to PDF (Rich Text Format) (How to Convert RTF to PDF | Code Example for RTF to PDF Conversion | API Reference for RTF to PDF Conversion)
- Will render a RTF file or string to a PDF with HTML formatting.
- MD to PDF (Markdown) (How to Convert Markdown to PDF | Markdown to PDF Code Example | API Reference for Markdown to PDF Conversion)
- Will render a Markdown file or string to a PDF with HTML formatting.
- PDF to HTML (How to Convert PDF to HTML | PDF to HTML Code Example)
- Convert PDF to HTML string. (API Reference for PDF to HTML)
- Convert PDF to HTML file. (API Reference for PDF to HTML File)
Supports
- UTF-8 Character Encoding (Understanding UTF-8 Encoding with IronPDF | Code Example for Unicode Support)
- Supports all known .NET text encodings and code-pages.
- Set UTF-8 and HTML Encoding in the following ways:
- In Print Options using System.Text.Encoding.
- In the HTML Header.
- Base URLs & Asset Encoding (How to Use Base URLs and Asset Encoding | Code Example for Base64 Embedding)
- Automatically embed images and external files into a single HTML template using the built-in Base64 utility.
- Set up Custom File Paths on a local disk or network to load HTML assets from.
- Configure base URLs for HTML Documents, Headers, and Footers so that assets may be loaded from local or external locations.
- TLS Website & System Logins (How to Use Network Authentication for Logins | Code Example for Secure Logins with IronPDF | API Reference for Chrome HTTP Login Credentials)
- Render web pages as PDFs on secure intranets, extranets, and websites.
- Async & Multithreading (Guide to Async & Multithreading in IronPDF | Asynchronous PDF Generation Code Examples | API Reference for Asynchronous Rendering with IronPDF)
- Async and Thread safety is useful when generating PDFs in batches for high performance, and for stability in high load web applications.
- Custom Logging (How to Implement Custom Logging)
- Redirect and filter the logging from IronPDF with a custom logging class.
- Cookies (How to Implement Cookies with IronPDF)
- Allows for custom cookies to be posted with every HTML request. Useful for sessions and logins.
Formatting PDFs
Use HTML Assets
- HTML (5 and below) (How to Render HTML Content with IronPDF | API Reference for HTML Rendering)
- Render any HTML content with IronPDF. This content can be any of the following:
- HTML strings
- HTML from a URL
- Local HTML files
- CSS (Screen & Print) (How to Render Responsive CSS with IronPDF)
- Render responsive CSS with IronPDF for:
- Screen responsive media type
- Print responsive media type
- Images (jpg, png, gif, tiff, svg, bmp) (How to Add Images to PDFs | Code Example for Image to PDF)
- Render any number of images into a PDF document.
- JavaScript (Custom Render Delays)
- Render JavaScript in PDF documents. (Guide to Rendering JavaScript with IronPDF | Example of JavaScript HTML to PDF | API Reference for Custom JavaScript Rendering)
- Wait for custom JavaScript function to execute to render the PDF document. (How-To for JavaScript Execution | Example Code for Executing JavaScript in PDFs | API Details for JavaScript Execution)
- Execute custom JavaScript (Guide for JavaScript PDF Conversion | JavaScript Execution Code Example | API Documentation for Executing JavaScript)
- JavaScript message listener (How-To on JavaScript Message Listener | Code Example for JavaScript Messaging | API Details for JavaScript Messaging)
- Fonts (Web & Icon) (How to Render Web and Icon Fonts | Google Fonts in HTML to PDF Examples)
- Render Web and Icon Fonts in PDF documents.
Apply Page Templates
- Add Headers & Footers (Guide to Adding Headers & Footers | Examples of HTML Headers & Footers | Adding Headers and Footers Tutorial | API Reference for Header and Footer Rendering)
- Headers and Footers can be added to PDF documents in the following ways:
- SimpleHeaderFooter for text based headers with dynamic variables.
- HtmlHeaderFooter for HTML headers and footers with dynamic variables.
- Add Page Numbers (Guide to Adding Page Numbers | Code Example for Page Numbers and Page Breaks | Tutorial for Adding Headers and Footers)
- Add Page Numbers to one or many pages.
- Add Page Breaks (How-To for HTML Page Breaks | Examples of Page Number and Breaks)
- Create HTML Page Breaks.
- Fit to Paper & Zoom (How-To on Viewport Zoom | Viewport Code Examples | API Reference for Virtual Paper Layout)
- By using the Virtual Viewport properties, you can specify the size of the virtual browser window that renders your responsive HTML.
- Custom Margins (How-To on Setting Custom Margins | Examples for Custom Margins in PDF | Guidance on More Printing Options | API Details for Custom Margins)
- Set Left, Right, Top and Bottom Margins.
- Or have zero margins.
Apply Page Settings
- Responsive Layouts (Code Example for Responsive Viewports)
- IronPDF can render responsive HTML with CSS3 into PDF documents.
- Custom Paper Size (How to Set Custom Paper Sizes | Custom Paper Size Code Examples | More Guidance on Printing Options | API Information on Paper Size Settings)
- Set custom page sizes using: Millimeters, Inches, Points.
- Orientation & Rotation (How to Rotate PDF Pages and Set Orientation | Examples for PDF Page Rotations | Documentation on More Printing Options | API Details on Page Orientation and Rotation)
- Rotate pages in degrees.
- Set Landscape or Portrait Orientation.
- Color (How-To for Selecting PDF Output Color | Examples of PDF Grayscale Conversion | Detailed Printing Options | API for PDF Output Color)
- Output pages in full Color.
Supports PDF Standards
- PDF Versions (1.2 - 1.7)
- PDF/UA (PDF/UA-1) (How to Ensure PDF/UA Compliance | PDF/UA Compliance Code Examples | API Reference for PDF/UA Compliance)
- Convert and export PDF/UA compliant documents. (PDF/Universal Accessibility)
- PDF/A (PDF/A-3b) (How to Export PDF/A Documents | PDF/A Code Examples | API Reference for PDF/A Compliance)
- Convert and export PDF/A compliant documents. Supported: PDF/A-3b (PDF Archiving).
Editing PDFs
Set Properties & Security
- Set Password & Permissions (How to Set PDF Passwords and Permissions | Examples for PDF Security and Metadata | API for Managing PDF Passwords)
- Set up security settings such as:
- Disallow copy and paste
- Disallow forms
- Disallow Annotations
- Make the document read-only
- Disallow printing
- Disallow editing
- Manipulate PDF document passwords by:
- Open, edit and save encrypted documents
- Setting PDF document owner and user passwords
- Removing PDF document passwords
- Removing and setting PDF document Encryption for passwords
- Digital Signatures (.pfx, .p12) (How to Add Digital Signatures to PDFs | Examples for Digitally Signing PDFs | API Reference for PDF Digital Signatures)
- Cryptographically sign PDF digital certificates.
- Supports PDF incremental saving with signing.
- Add a secure digital signature to PDF documents, with options to include:
- Signature date, time
- Stamp an image (e.g. company logo, handwritten signature picture)
- Email or contact info of the signer
- Location where the document was signed
- A reason for the signature
- PDF File Compression (How to Compress PDF Files | Examples for PDF File Compression | API for PDF Image Compression)
- Reduce overall PDF size by compressing images in the document.
- Edit PDF Metadata (How to Edit PDF Metadata | Examples of Security and Metadata Editing | API Reference for PDF Metadata Editing)
- Add granular metadata such as:
- Author
- Keywords
- ModifiedDate
- Edit & Sign Revision History (How to Manage Revision History in PDFs | API Reference for PDF Revision Management)
- Maintain a record of the document's revisions, including who made the changes and when.
Edit Document Structure
- Add, Copy, & Delete Pages (Guide for Editing PDF Pages | Examples for PDF Page Editing)
- Add, copy and delete PDF pages from and to existing PDF documents.
- Merge & Split PDFs (How to Merge or Split PDFs | Examples for Merging PDFs | API for PDF Merging and Splitting)
- Merge multiple PDF documents into a single PDF document.
- Split PDF document pages to form multiple documents.
- Annotations (How to Use Annotations in PDFs | Examples of PDF Annotations | API for PDF Annotations)
- Create Annotations for PDF documents and set Annotation attributes including:
- Icon
- Opacity
- Contents
- Title
- Rotation
- Attachments (How to Add or Remove PDF Attachments | Examples for PDF Attachments | API for PDF Attachment Management)
- Add and remove attachments from a PDF.
- Bookmarks and Outline (How to Create Bookmarks in PDFs | Examples of PDF Bookmarks | API for Managing PDF Bookmarks)
- Create, edit, and remove outlines, “bookmarks”, and nested bookmarks in your PDF.
Edit Page Content
- Draw Text & Bitmap (How to Add Text and Bitmap to PDFs | API for Text and Bitmap Drawing)
- Add text to an existing PDF document.
- Add image and bitmap to an existing PDF document.
- Find and Replace Text (How to Find and Replace Text in PDFs | Examples of Text Replacement in PDFs | API Reference for Text Replacement)
- Headers & Footers (How to Add Headers and Footers to PDFs | Examples for Headers and Footers in PDFs | API Reference for Managing Headers and Footers)
- Create text or HTML Headers and Footers, including templating, for your PDF documents.
- Add text-based headers to PDF documents.
- Add HTML headers and footers to PDF documents.
- Provides templating of dynamic data in HTML headers and footers.
- Stamp Text & Images (How to Stamp Text and Images | Examples for Content Stamping | API Reference for Content Stamping)
- Add new HTML content to the foreground or background of PDF documents and set various properties for stamping including:
- Set Stamp position
- Set Stamp opacity
- Set Stamp rotation angles
- Set Stamp sizes
- Custom Watermarks (How to Add Custom Watermarks | Examples of PDF Watermarking | API Reference for Watermark Application)
- Add new HTML content to the foreground or background of PDF documents and set various properties for stamping including:
- Set Stamp position
- Set Stamp opacity
- Set Stamp Rotation angles
- Set Stamp sizes
- Backgrounds & Foregrounds (How to Manage PDF Backgrounds and Foregrounds | Examples for Backgrounds and Foregrounds | API Reference for PDF Background Management)
- Add foreground overlays to existing PDF documents and make use of existing PDFs for backgrounds on other PDF documents.
Use PDF Forms
- Create & Edit PDF Forms (How to Create Editable PDF Forms | Examples of PDF Form Creation | Complete Guide to PDF Form Editing | API Reference for PDF Forms)
- Create and edit HTML Input and Text Area forms.
- Create and edit HTML Checkbox and Combobox forms.
- Create and edit HTML Radio buttons forms.
- Populate default values for form fields.
- Read form data.
- Fill Existing PDF Forms (How to Fill PDF Forms | Examples of PDF Form Filling | Guide to Filling Existing PDF Forms | API Reference for Filling PDF Forms)
- Populate form fields using any of the following methods:
- Supply default values to existing form fields.
- Fill in input and text area fields on forms.
View, Read, & Print PDFs
- IronPDF Viewer (Using IronPDF Viewer in MAUI)
- View PDFs in MAUI for C# .NET.
- Print to a Physical Printer (Guide to Printing PDFs | Examples for PDF Printing | API Documentation for PDF Printing)
- Print PDF documents to a computer’s default printer.
- Provide a Windows print dialog box for printing.
- Provide silent and other advanced printing options for non-GUI applications
- Extract PDF Text & Images (How to Extract Text and Images from PDFs | Examples for PDF Text Extraction | API for Extracting PDF Contents)
- Extracting all text from a PDF document or from certain pages.
- Extracting images from an entire or from certain pages of PDF as bitmap and byte.
- Extracting embedded images from PDF documents.