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
<PackageReference Include="RecursiveAI.OnePdf.Html.Render" Version="1.0.0" />
<PackageVersion Include="RecursiveAI.OnePdf.Html.Render" Version="1.0.0" />
<PackageReference Include="RecursiveAI.OnePdf.Html.Render" />
paket add RecursiveAI.OnePdf.Html.Render --version 1.0.0
#r "nuget: RecursiveAI.OnePdf.Html.Render, 1.0.0"
#:package RecursiveAI.OnePdf.Html.Render@1.0.0
#addin nuget:?package=RecursiveAI.OnePdf.Html.Render&version=1.0.0
#tool nuget:?package=RecursiveAI.OnePdf.Html.Render&version=1.0.0
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.
- Guide: https://github.com/recursive-ai-oss/onepdf-html-csharp/blob/main/docs/html-to-pdf.md
- Source and documentation: https://github.com/recursive-ai-oss/onepdf-html-csharp
- Licensed under MIT or Apache-2.0. Third-party notices are in
THIRD-PARTY-NOTICES.mdin this package.
| Product | Versions 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. |
-
net10.0
- RecursiveAI.OneFont (>= 1.6.0)
- RecursiveAI.OneHtml (>= 1.7.0)
- RecursiveAI.OneImage (>= 1.11.3)
- RecursiveAI.OneImage.Svg (>= 1.11.3)
- RecursiveAI.OneImage.Text (>= 1.11.3)
- RecursiveAI.OnePdf (>= 1.26.0)
- RecursiveAI.OneRender.Pdf (>= 1.6.4)
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 |