IronPdf.Slim 2022.5.5629

.NET Standard 2.0 .NET Framework 4.0
There is a newer version of this package available.
See the version list below for details.
Install-Package IronPdf.Slim -Version 2022.5.5629
dotnet add package IronPdf.Slim --version 2022.5.5629
<PackageReference Include="IronPdf.Slim" Version="2022.5.5629" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IronPdf.Slim --version 2022.5.5629
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: IronPdf.Slim, 2022.5.5629"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install IronPdf.Slim as a Cake Addin
#addin nuget:?package=IronPdf.Slim&version=2022.5.5629

// Install IronPdf.Slim as a Cake Tool
#tool nuget:?package=IronPdf.Slim&version=2022.5.5629
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Passing Nuget Downloads Support

IronPDF helps C# Software Engineers to create, edit and extract PDF content in .NET projects.

  • C# HTML to PDF for .NET 5, Core, Standard, and Framework
  • Work with PDFs in C# using HTML, MVC, ASPX, and images
  • Generate, Edit, Read and Secure PDF Documents

Generate PDFs with Pixel Perfect Chrome HTML to PDF Rendering

The Iron PDF 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 the skills that developers already possess.

Fully Supports:

Windows, MacOS, Linux, Azure, Docker and AWS

Licensing & Support available

For code examples, tutorials and documentation visit https://ironpdf.com/ Email: developers@ironsoftware.com

Get Started Code Example


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\");

PDF.SaveAs("html-with-assets.pdf");

Documentation Links

Compatibility

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 developers@ironsoftware.com 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(“https://www.google.com/”);

//var doc = Renderer.RenderHtmlFileAsPdf(“example.html”);

doc.SaveAs(“google_chrome.pdf”);

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(“https://www.google.com/”);

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(“https://www.google.com/”);

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:

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on IronPdf.Slim:

Package Downloads
IronPdf

IronPDF helps C# Software Engineers to create, edit and extract PDF content in .NET projects. # C# HTML to PDF for .NET 5, Core, Standard, and Framework # Work with PDFs in C# using HTML, MVC, ASPX, and images # Generate, Edit, Read and Secure PDF Documents Generate PDFs with Pixel Perfect Chrome HTML to PDF Rendering: The Iron PDF 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 the skills that developers already possess. Fully Supports: * .NET 5, Framework, Core, and Standard * Windows, MacOS, Linux, Azure, Docker and AWS For code examples, tutorials and documentation visit https://ironpdf.com/

IronPdf.Linux

IronPDF helps C# Software Engineers to create, edit and extract PDF content in .NET projects. # C# HTML to PDF for .NET 5, Core, Standard, and Framework # Work with PDFs in C# using HTML, MVC, ASPX, and images # Generate, Edit, Read and Secure PDF Documents Generate PDFs with Pixel Perfect Chrome HTML to PDF Rendering: The Iron PDF 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 the skills that developers already possess. Fully Supports: * .NET 5, Framework, Core, and Standard * Windows, MacOS, Linux, Azure, Docker and AWS For code examples, tutorials and documentation visit https://ironpdf.com/

Dynamicweb.Admin

Package Description

Dynamicweb.Imaging.Providers.IronPdfProviders

IronPdf providers for pdf handling

IronPdf.Classic

IronPDF helps C# Software Engineers to create, edit and extract PDF content in .NET projects. # C# HTML to PDF for .NET 5, Core, Standard, and Framework # Work with PDFs in C# using HTML, MVC, ASPX, and images # Generate, Edit, Read and Secure PDF Documents Generate PDFs with Pixel Perfect Chrome HTML to PDF Rendering: The Iron PDF 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 the skills that developers already possess. Fully Supports: * .NET 5, Framework, Core, and Standard * Windows, MacOS, Linux, Azure, Docker and AWS For code examples, tutorials and documentation visit https://ironpdf.com/

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2022.7.6986 690 6/30/2022
2022.6.6115 14,164 6/6/2022
2022.5.5629 32,718 5/12/2022
2022.5.5596 29,646 5/2/2022
2022.4.5575 12,679 4/25/2022
2022.4.5455 14,082 4/12/2022
2022.4.5250-eap 2,807 3/22/2022
2022.3.5084 83,069 3/8/2022
2022.2.4887 47,474 2/17/2022
2022.1.4599 72,747 1/11/2022
2021.12.4495 157,866 12/7/2021
2021.12.4401 23,936 12/1/2021
2021.11.4257 41,688 11/15/2021
2021.11.4183 31,647 10/28/2021
2021.9.3737 94,212 9/20/2021
2021.9.3689 21,551 9/7/2021
2021.9.3678 21,417 8/26/2021
2021.9.3650 1,175 8/26/2021

* Fixes a bug where PDF could not print without metadata
 * Fixes a bug where cookies were missing after a redirect
 * Fixes a bug where PDF to image converter applied maxWidth and maxHeight incorrectly
 * Fixes a bug where merging PDFs caused form fields to become uneditable
 * Fixes a bug where ComboBoxField name would contain Parentheses
 * Fixes a bug where FormField could not cast to another Field class
 * Fixes a bug where Form fields with . in their name could not be not detected
 * Fixes a bug causing a System.ApplicationException during the rendering of PDFs with custom cookies
 * Improves some documentation and error messages
 * Deprecated GenerateUniqueDocumentIdentifiers