IronPDF Features
IronPDF is a .NET library allowing developers to create, edit and export PDF documents.
Compatibility
.NET Versions
- C# (How-To)
- Generate and edit PDFs in C# with HTML, MVC, ASPX, & images
- VB.NET (How-To)
- Generate and edit PDFs in VB.NET with HTML, MVC, ASPX, & images
- F# (How-To)
- Generate and edit PDFs in F# with HTML, MVC, ASPX, & images
- .NET Core (8, 7, 6, 5, and 3.1+)
- .NET Standard (2.0+)
- IronPDF is compatible with .NET Standard 2.0 and upwards.
- .NET Framework (4.6.2+) (Code Example)
- Generate and manipulate PDFs with .NET Framework 4.6.2 and upwards.
.NET Project Types
- 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) (Tutorial)
- Create any application using IronPDF on Windows.
- Linux (Ubuntu, Debian, CentOS, etc.) (Tutorial)
- Create any application using IronPDF on Linux.
- Mac (macOS 10+) (Tutorial)
- Create any application using IronPDF on macOS.
- Docker (Windows, Linux, Azure) (Tutorial | API Reference)
- Create any application using IronPDF on Docker.
- IronPDF Docker Container which can handle the creating, writing, editing, and reading of PDFs. (How-To)
- Azure (VPS, WebApp, Function) (Tutorial)
- Create any application using IronPDF on Azure.
- AWS (EC2, Lambda) (Tutorial)
IDEs
- Microsoft Visual Studio (Tutorial | 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 (How-To | Code Example | Tutorial | API Reference)
- Convert HTML files including images, JavaScript and CSS code to PDF.
- Save HTML files including images, JavaScript and CSS code to PDF.
- HTML String to PDF (How-To | Code Example | Tutorial | API Reference)
- Convert HTML strings including images, JavaScript and CSS code to PDF.
- URL to PDF (How-To | Code Example | Tutorial | API Reference)
- Convert URL webpages to PDFs.
Content Pages to PDF
- Razor to PDF (Blazor Server) (How-To | Code Example)
- Convert Razor to PDF in Blazor Server.
- CSHTML to PDF (MVC, Razor)
- Convert Razor Pages to PDFs in ASP.NET Core Web App. (How-To | Code Example)
- Convert Views to PDFs in ASP.NET MVC Core. (How-To | Code Example)
- Convert Views to PDFs in ASP.NET MVC Framework. (How-To | Code Example)
- ASPX to PDF (WebForms) (How-To | Code Example)
- ASPX Pages to PDF in ASP.NET.
- XAML to PDF (MAUI) (How-To | Code Example)
- Convert XAML to PDF in MAUI.
PDF File Conversion
- Image to PDF (How-To | Code Example | API Reference)
- Turn image files into pages of a PDF document.
- Image from PDF (How-To | Code Example | Tutorial | API Reference)
- Rasterize a PDF's pages into images.
- DOCX to PDF (Microsoft Word) (How-To | Code Example | API Reference)
- Will render a Word file or string to a PDF with HTML formatting.
- RTF to PDF (Rich Text Format) (How-To | Code Example | API Reference)
- Will render a RTF file or string to a PDF with HTML formatting.
- MD to PDF (Markdown) (How-To | Code Example | API Reference)
- Will render a Markdown file or string to a PDF with HTML formatting.
- PDF to HTML (How-To | Code Example)
- Convert PDF to HTML string. (API Reference)
- Convert PDF to HTML file. (API Reference)
Supports
- UTF-8 Character Encoding (How-To | Code Example)
- 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 | Code Example)
- 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 | Code Example | API Reference)
- Render web pages as PDFs on secure intranets, extranets, and websites.
- Async & Multithreading (How-To | Code Example | API Reference)
- 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)
- Redirect and filter the logging from IronPDF with a custom logging class.
- Cookies (How-To)
- 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 | API Reference)
- 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 for:
- Screen responsive media type
- Print responsive media type
- Images (jpg, png, gif, tiff, svg, bmp) (How-To | Code Example)
- Render any number of images into a PDF document.
- JavaScript (Custom Render Delays)
- Render JavaScript in PDF documents. (How-To | Code Example | API Reference)
- Wait for custom JavaScript function to execute to render the PDF document. (How-To | Code Example | API Reference)
- Execute custom JavaScript (How-To | Code Example | API Reference)
- JavaScript message listener (How-To | Code Example | API Reference)
- Fonts (Web & Icon) (How-To | Code Example)
- Render Web and Icon Fonts in PDF documents.
Apply Page Templates
- Add Headers & Footers (How-To | Code Example | Tutorial | API Reference)
- 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 (How-To | Code Example | Tutorial)
- Add Page Numbers to one or many pages.
- Add Page Breaks (How-To | Code Example)
- Create HTML Page Breaks.
- Fit to Paper & Zoom (How-To | Code Example | API Reference)
- 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 | Code Example | Tutorial | API Reference)
- Set Left, Right, Top and Bottom Margins
- Or have zero margins
Apply Page Settings
- Responsive Layouts (Code Example)
- IronPDF can render responsive HTML with CSS3 into PDF documents.
- Custom Paper Size (How-To | Code Example | Tutorial | API Reference)
- Set custom page sizes using: Millimeters, Inches, Points
- Orientation & Rotation (How-To | Code Example | Tutorial | API Reference)
- Rotate pages in degrees.
- Set Landscape or Portrait Orientation.
- Color (How-To | Code Example | Tutorial | API Reference)
- Output pages in full Color.
Supports PDF Standards
- PDF Versions (1.2 - 1.7)
- PDF/UA (PDF/UA-1) (How-To | Code Example | API Reference)
- Convert and export PDF/UA compliant documents. (PDF/Universal Accessibility)
- PDF/A (PDF/A-3b) (How-To | Code Example | API Reference)
- Convert and export PDF/A compliant documents. Supported: PDF/A-3b (PDF Archiving)
Editing PDFs
Set Properties & Security
- Set Password & Permissions (How-To | Code Example | API Reference)
- 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 | Code Example | API Reference)
- 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 | Code Example | API Reference)
- Reduce overall PDF size but compressing images in the document.
- Edit PDF Metadata (How-To | Code Example | API Reference)
- Add granular meta-data such as:
- Author
- Keywords
- ModifiedDate
- Edit & Sign Revision History (How-To | API Reference)
- Maintain a record of the document's revisions, including who made the changes and when.
Edit Document Structure
- Add, Copy, & Delete Pages (How-To | Code Example)
- Add, copy and delete PDF pages from and to existing PDF documents.
- Merge & Split PDFs (How-To | Code Example | API Reference)
- Merge multiple PDF documents into a single PDF document.
- Split PDF document pages to form multiple documents.
- Annotations (How-To | Code Example | API Reference)
- Create Annotations for PDF documents and set Annotation attributes including:
- Icon
- Opacity
- Contents
- Title
- Rotation
- Attachments (How-To | Code Example | API Reference)
- Add and remove attachments from a PDF.
- Bookmarks and Outline (How-To | Code Example | API Reference)
- Create, edit and remove outlines, “bookmarks”, and nested bookmarks in your PDF.
Edit Page Content
- Draw Text & Bitmap (How-To | API Reference)
- Add text to an existing PDF document
- Add image and bitmap to an existing PDF document
- Find and Replace Text (How-To | Code Example | API Reference)
- Headers & Footers (How-To | Code Example | API Reference)
- 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 | Code Example | API Reference)
- 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 | Code Example | API Reference)
- 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 | Code Example | API Reference)
- 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 | Code Example | Tutorial | API Reference)
- 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 | Code Example | Tutorial | API Reference)
- 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 (Tutorial)
- View PDFs in MAUI for C# .NET
- Print to a Physical Printer (How-To | Code Example | API Reference)
- 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 | Code Example | API Reference)
- 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