Ironpress 1.6.0

dotnet add package Ironpress --version 1.6.0
                    
NuGet\Install-Package Ironpress -Version 1.6.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="Ironpress" Version="1.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ironpress" Version="1.6.0" />
                    
Directory.Packages.props
<PackageReference Include="Ironpress" />
                    
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 Ironpress --version 1.6.0
                    
#r "nuget: Ironpress, 1.6.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 Ironpress@1.6.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=Ironpress&version=1.6.0
                    
Install as a Cake Addin
#tool nuget:?package=Ironpress&version=1.6.0
                    
Install as a Cake Tool

Ironpress for .NET

Ironpress renders HTML, CSS, and Markdown to PDF bytes inside a .NET process. The NuGet package contains the managed facade and its native Ironpress library; consumers do not need Rust, Chrome, or a subprocess.

Install

dotnet add package Ironpress

The initial package targets .NET 8 or newer and includes native assets for:

  • Linux x64 and ARM64 with glibc 2.28 or newer
  • macOS x64 and ARM64
  • Windows x64

Convert HTML

using Ironpress;

using var converter = new HtmlConverter()
    .SetPageSize(PageSize.Letter)
    .SetMargin(36)
    .SetFooter("Page {page} of {pages}");

byte[] pdf = converter.ConvertHtml("<h1>Hello from .NET</h1>");
File.WriteAllBytes("output.pdf", pdf);

ConvertMarkdown accepts Markdown and returns the same owned byte[] result. Use SetHeaderHtml or SetFooterHtml for sanitized images, tables, and styled markup in the page margins.

Configure rendering

The managed facade covers the portable C ABI contract:

  • named or custom page dimensions and per-side margins
  • compression, JPEG quality, image resizing, and raster resolutions
  • sanitization, headers, and footers
  • custom TrueType font bytes
  • optional Japanese, Korean, Simplified Chinese, Traditional Chinese, and emoji packs

Every mutating method returns the same converter for fluent configuration. HtmlConverter owns a native resource and implements IDisposable; use a using declaration or call Dispose deterministically. A converter may move between threads while idle, but it must not be used or disposed concurrently.

Errors

Native failures throw IronpressException. Its Kind property retains the stable parser, layout, render, font, security, or argument category. Ordinary .NET contract violations, such as invalid custom page dimensions or use after disposal, use the standard argument and disposal exception types.

Fonts and security

The package never downloads fonts. Load an optional pack from an Ironpress release and pass its bytes explicitly:

using var converter = new HtmlConverter()
    .AddFontPack(
        FontPackKind.CjkJapanese,
        File.ReadAllBytes("ironpress-font-cjk-jp.ttf"));

The first .NET contract accepts document and font bytes only. It does not expose local paths, direct file output, streaming, asynchronous conversion, or remote resource access. HTML sanitization remains enabled by default.

The managed assembly verifies ABI generation 1 before allocating a converter. See the shared binding matrix and the native ABI contract for the complete ownership model.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.6.0 0 8/27/2026
1.5.4 84 8/23/2026