RecursiveAI.OnePdf.Html.Render 1.0.0

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

RecursiveAI.OnePdf.Html.Render

Converts HTML to a tagged PDF in .NET: a string, file, stream or URL in; bytes, a stream or a file out. Built on RecursiveAI.OneRender, which lays the HTML out for print and writes the PDF; this package adds what a converter API needs: page size, orientation and margins, running headers and footers with page numbers (text or HTML templates), link handling, an outline from the headings, metadata, and PDF/UA-1 and PDF/A-2a.

using OnePdf.Html.Render;

byte[] pdf = HtmlToPdf.ConvertFile("report.html");
HtmlToPdf.ConvertFile("report.html", "report.pdf", new HtmlToPdfOptions
{
    PageSize = HtmlPageSize.Letter,
    Margins = HtmlMargins.FromMillimeters(20),
    Footer = HtmlHeaderFooter.PageXOfY(),
    Profile = HtmlPdfProfile.PdfA2aAndUA1,
});

Batches (ConvertFiles, ConvertAll) run in parallel, and each PDF equals the one-by-one result. HtmlToPdfConverter is the low level.

No script runs. A document reads files only below its input's folder, and reads the network only when the input is a URL or HtmlNetworkOptions.Enabled is set, over http and https with size, count, time and redirect limits and non-public addresses refused unless allowed. The same input and options give the same bytes: the converter never reads the clock.

This package does not depend on RecursiveAI.OnePdf.Html, so PDF to HTML users do not pull in a layout engine and its fonts. net10.0, NativeAOT- and trim-compatible.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

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.0.0 53 12/4/2026