IronPdf 2021.9.3678

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package IronPdf --version 2021.9.3678
NuGet\Install-Package IronPdf -Version 2021.9.3678
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="IronPdf" Version="2021.9.3678" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IronPdf --version 2021.9.3678
#r "nuget: IronPdf, 2021.9.3678"
#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.
// Install IronPdf as a Cake Addin
#addin nuget:?package=IronPdf&version=2021.9.3678

// Install IronPdf as a Cake Tool
#tool nuget:?package=IronPdf&version=2021.9.3678

Passing Nuget Downloads Support

IronPDF is a .NET library to generate, read, edit & save PDF files in .NET projects. IronPDF features HTML to PDF for .NET 5, Core, Standard & Framework with full HTML to PDF support including CSS3 and JS.

Visit our website for a quick-start guide at

using IronPdf;

var Renderer = new IronPdf.ChromePdfRenderer();
Renderer.RenderHtmlAsPdf("<h1>Html with CSS and Images</h1>").SaveAs("pixel-perfect.pdf");

/****** Advanced ******/
// Load external html assets: images, css and javascript.
// An optional BasePath 'C:\site\assets\' is set as the file location to load assets from 
var PDF = Renderer.RenderHtmlAsPdf("<img src='icons/iron.png'>", @"C:\site\assets\");


Welcome to the cutting edge of .NET PDF rendering and manipulation technology with IronPDF 2021 now featuring Chrome identical HTML rendering with full support for:

  • C#, F#, and VB.NET
  • .Net 5, Core 2x & 3x, Standard 2, and Framework 4x
  • Console, Web, & Desktop Apps
  • Windows, Linux (Debian, CentOS, Ubuntu), MacOs, Docker, and Azure
  • Microsoft Visual Studio or Jetbrains ReSharper & Rider

Generating PDFs

Generate PDFs in C# with HTML, MVC, ASPX, & images.

  • HTML to PDF using HTML Files, Strings, URLs, ASPX, Razor and MVC Views
  • Image to PDF and PDF to Image
  • Supports Base 64 Encoding, Base URLs, and Custom File Paths
  • Website & System Logins, Custom User Agents, Proxies, Cookies, HTTP Headers, Async & Multithreading

Formatting PDFs

Supports HTML, JS and CSS Standards using modern Chrome Rendering

  • HTML (5 and below), CSS (Screen & Print), Images (jpg, png, gif, tiff, svg, bmp), JavaScript (+ Render Delays), Fonts (Web & Icon)
  • Use Responsive Layouts, Set Virtual Viewports and Zoom
  • Apply Headers & Footers, Page Numbers, and Page Breaks
  • Page Settings for Custom Paper Size, Orientation & Rotation, Margins (mm, inch, & zero), Color & Grayscale, Resolution & JPEG Quality
  • International Language Support with UTF-8 HTML Encoding

Manipulating PDFs

Edit, Read and Secure PDF Documents

  • Merge & Split PDFs. Add / Duplicate / Delete Pages
  • Add New HTML Content, Headers & Footers, Stamp & Watermark, Backgrounds & Foregrounds, Annotations, Outlines & Bookmarks
  • Create, Edit, and Fill PDF Forms
  • Apply PDF Metadata, Permissions & Passwords, Digital Signatures
  • Print PDFs to Physical Printers
  • Read Text and Images from PDFs

You can email us at for support directly from our code team. We offer licensing and extensive support for commercial deployment projects.

Installing IronPDF 2021

To Install:

PM> Install-Package IronPdf

Upgrade Guide for Existing Users

IronPdf updates all usages of your existing HtmlToPdf and AspToPdf code to use our new Chrome Rendering Engine.

Remove any reference to IronPdf.Threading which is now legacy software. The IronPdf main package is threading and async compatible!

Try out the new 2021 API

We haven’t broken the IronPDF API you are using, it will remain! However, the old style is being superseded by a better one to give you more control. For examples you now have Print options and Http Login controls specific to your renderer

using IronPdf;
ChromePdfRenderer Renderer = new ChromePdfRenderer();
Renderer.RenderingOptions.FitToPaper = true;
Renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.PdfCssMediaType.Screen;
Renderer.RenderingOptions.PrintHtmlBackgrounds = true;
Renderer.RenderingOptions.CreatePdfFormsFromHtml = true;
var doc = Renderer.RenderHtmlAsPdf(“<h1>Hello world!</h1>“);
//var doc = Renderer.RenderUrlAsPdf(“”);
//var doc = Renderer.RenderHtmlFileAsPdf(“example.html”);

Pixel perfect Chrome rendering!

This example will give you PDFs which are pixel perfect to the latest chrome desktop browser’s “print to pdf” functionality:

ChromePdfRenderer Renderer = new ChromePdfRenderer();
Renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.PdfCssMediaType.Print;
Renderer.RenderingOptions.PrintHtmlBackgrounds = false;
Renderer.RenderingOptions.CreatePdfFormsFromHtml = false;
var doc = Renderer.RenderUrlAsPdf(“”);

However...we would recommend using improved features such as:

Using screen stylesheets to print PDFs which are less fiddly to develop and more true to existing web assets.

  • Responsive layout support
  • Creating PDF Forms from your HTML form elements.
ChromePdfRenderer Renderer = new ChromePdfRenderer();
Renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.PdfCssMediaType.Screen;
Renderer.RenderingOptions.PrintHtmlBackgrounds = true;
Renderer.RenderingOptions.CreatePdfFormsFromHtml = true;
Renderer.RenderingOptions.ViewportWidth = 1080 ; //px
var doc = Renderer.RenderUrlAsPdf(“”);

Comparing Chrome and WebKit

You can use the IronPdf.Rendering.AdaptivePdfRenderer to switch between the ‘Chrome’ and ‘WebKit’ rendering at an instance level if you preferred the old rendering style for some of your application, or dont want to break unit tests.

using IronPdf;
IronPdf.Rendering.AdaptivePdfRenderer Renderer = new IronPdf.Rendering.AdaptivePdfRenderer();
Renderer.RenderingOptions.RenderingEngine = IronPdf.Rendering.PdfRenderingEngine.Chrome;  //switch between Chrome and WebKit here
var doc = Renderer.RenderHtmlAsPdf(“<h1>Hello world!</h1>“);

Use every CPU core available!

  • Multithreading and Async support for our Chrome rendering engine is in a different league to previous build.
  • For enterprise grade multi-threading use our Chrome in your existing threads and it will work. For web applications this also takes zero setup.
  • For batch processing for HtmlToPdf we suggest using the built in .NETParallel.ForEach
  • We love async and have provided Async variants of methods such as ChromePdfRenderer.RenderHtmlAsPdf

MSDN Style Class Reference

Explore the IronPDF API in the left navigation of this page. Popular Links include:

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (19)

Showing the top 5 NuGet packages that depend on IronPdf:

Package Downloads

IronPDF for .Net Core 2.x and 3.x allows developers to create, edit and extract PDF content within .Net Core Applications & Websites. The Iron PDF Core library takes the frustration out of generating PDF documents by not relying on proprietary APIs. "Html-To-Pdf" renders pixel-perfect PDFs from open standard document types: HTML, JS, CSS, JPG, PNG, GIF, and SVG. In short, it uses skills that developers already posses. Key features include: * "Html-To-Pdf" creates PDF files from HTML, CSS, JavaScript, and Images. * "Url-To-Pdf" generates PDFs from existing html pages by simply providing their URL. * "Image-To-PDF" creates PDF documents from image files. * PDF to Image functionality can render PDF documents to image files. * Extract text and images from existing PDFs. * Create, Fill and read data from PDF forms. * Merge, Split and Manipulate PDFs to edit PDF structure and content. * Add Page Numbers, Headers, Footers, Watermarks, Tables, Text and Image Assets. * Edit, Stamp and Watermark PDF files with text, images and HTML * Apply HTML or PDF backgrounds to PDF pages * Sign PDF files with digital certificates IronPDF can be used within ASP.NET projects, MVC, Web Services, Console & Desktop Applications. Requires .Net Core 2.x, 3.x or higher. Supports Windows, Ubuntu, Debian, CentOS, BSD, MacOS and Azure platforms. Licensing & Support available for commercial deployments. For code examples, documentation & more visit For support please email us at


All implementations for Bops features


Package Description

IronPdf.Threading The ID prefix of this package has been reserved for one of the owners of this package by

Multithreading Plugin Assets for the IronPDF Nuget Package. Allows IronPDF to render PDF documents from HTML using all available system cores.


Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on IronPdf:

Repository Stars
Modular monolith in .NET Core
Version Downloads Last updated
2023.12.6 6,502 11/27/2023
2023.11.8 11,270 11/13/2023
2023.11.7 10,558 11/1/2023
2023.10.3 32,047 10/3/2023
2023.9.8 32,072 9/13/2023
2023.8.6 66,183 7/31/2023
2023.7.4 47,932 7/3/2023
2023.6.10 68,109 6/2/2023
2023.5.8 75,457 5/1/2023
2023.4.4 118,041 3/30/2023
2023.3.2 69,190 3/9/2023
2023.2.4 38,803 2/28/2023
2023.1.11416 133,178 1/9/2023
2022.12.11113 32,650 12/23/2022
2022.11.10347 255,101 11/9/2022
2022.9.9056 168,094 9/14/2022
2022.8.8138 76,622 8/16/2022
2022.8.7894 50,987 7/28/2022
2022.7.6986 104,067 6/30/2022
2022.6.6115 126,216 6/6/2022
2022.5.5596 56,179 5/2/2022
2022.4.5575 24,418 4/25/2022
2022.4.5455 36,874 4/12/2022
2022.3.5084 116,847 3/8/2022
2022.2.4887 100,650 2/17/2022
2022.1.4599 147,996 1/11/2022
2021.12.4495 120,772 12/7/2021
2021.12.4401 27,237 12/1/2021
2021.11.4257 49,900 11/15/2021
2021.9.3737 180,742 9/20/2021
2021.9.3689 39,022 9/7/2021
2021.9.3678 24,203 8/26/2021
2021.3.1 965,577 3/8/2021
2021.1.29 105,910 1/29/2021
2020.12.3 153,667 12/18/2020
2020.12.2 198,120 12/7/2020
2020.10.3.3 491,873 10/14/2020
2020.10.2 74,711 10/7/2020
2020.9.0 357,492 9/1/2020
2020.8.1 49,181 8/14/2020
2020.8.0 61,560 8/1/2020
2020.7.1 56,623 7/15/2020
2020.6.0 260,643 6/1/2020
2020.3.2 317,841 3/25/2020
2020.3.1.1 46,029 3/11/2020
2020.3.0 33,446 3/2/2020
2020.1.0 393,869 1/9/2020
2019.8.9 96,301 12/3/2019
2019.7.0 104,485 10/2/2019
2019.6.5.41 80,634 8/28/2019 214,283 3/22/2019 22,259 2/14/2019
4.4.9 560,590 6/15/2018
4.4.8 22,718 5/25/2018 36,443 1/22/2018
4.4.5 45,655 9/6/2017 27,553 6/6/2017 5,978 1/18/2017
4.4.0 2,833 12/5/2016
4.2.2 16,519 2/22/2016
4.1.0 2,288 10/31/2015
4.0.0 26,325 9/3/2015

Feature Spotlight:
The primary upgrade is IronPdf in 2021 is ‘Chrome Identical’ PDF rendering.
* Added Chrome, WebKit and Adaptive Rendering to IronPdf

*  Pixel Perfect Chrome HTML to PDF Rendering
*  Full Multithreading an Async Support
*  Razor and MVC helpers added
*  ChromePdfRenderer Class added
*  WebKitPdfRenderer Class added
*  AdaptivePdfRenderer Class added

Minor breaking API changes exist.
* Chrome renderer replaces WebKit as our default HtmlToPdf engine.   Html, CSS add JS is rendered more accurately, which may cause layout changes for existing users
* Minor breaking API changes