RecursiveAI.OneRender.Pdf
1.3.3
Prefix Reserved
See the version list below for details.
dotnet add package RecursiveAI.OneRender.Pdf --version 1.3.3
NuGet\Install-Package RecursiveAI.OneRender.Pdf -Version 1.3.3
<PackageReference Include="RecursiveAI.OneRender.Pdf" Version="1.3.3" />
<PackageVersion Include="RecursiveAI.OneRender.Pdf" Version="1.3.3" />
<PackageReference Include="RecursiveAI.OneRender.Pdf" />
paket add RecursiveAI.OneRender.Pdf --version 1.3.3
#r "nuget: RecursiveAI.OneRender.Pdf, 1.3.3"
#:package RecursiveAI.OneRender.Pdf@1.3.3
#addin nuget:?package=RecursiveAI.OneRender.Pdf&version=1.3.3
#tool nuget:?package=RecursiveAI.OneRender.Pdf&version=1.3.3
RecursiveAI.OneRender.Pdf
Writes a OneRender display list as a PDF through OnePdf's writer. Output is tagged by default, with the structure tree taken from the HTML semantics (headings, paragraphs, tables, figures with alt text, links), /ToUnicode and /ActualText for text, font subsetting, and the PDF/UA-1 and PDF/A-2a profiles.
using OneRender.Pdf;
byte[] pdf = HtmlPdf.ToPdf(html, new HtmlPdfOptions { Page = PdfPageSetup.A4 });
HtmlPdf.ToPdf paginates with @page rules, margin boxes and counters; DisplayListPdfWriter is the low level, one display list per page. Effects the PDF model cannot express (some filters, blend modes) are rasterized into images with a diagnostic.
Known limitation: tagged PDF/UA-1 output with complex-script text (full Arabic, Devanagari or Thai sentences) can fail veraPDF rule 7.21.7, because glyphs inside multi-glyph clusters have no ToUnicode mapping. Extracted text is still correct. Pages that mix scripts with short complex-script words pass.
Part of OneRender, an HTML and CSS layout and rendering engine for .NET: https://github.com/recursive-ai-oss/onerender-csharp. Licence MIT OR Apache-2.0; see THIRD-PARTY-NOTICES.md in the package for bundled third-party material.
| 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.OnePdf (>= 1.15.1)
- RecursiveAI.OneRender (>= 1.3.3)
- RecursiveAI.OneRender.Image (>= 1.3.3)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on RecursiveAI.OneRender.Pdf:
| Package | Downloads |
|---|---|
|
RecursiveAI.OneRender.Razor
Renders a Razor component to PDF or an image in one call. |
|
|
RecursiveAI.OneDiff.Pdf
Text diff and document comparison for .NET. PDF comparison: a document source that reads digital PDFs into the compare model with glyph-quad anchors, and a writer that marks the changes on the original pages with real PDF annotations. |
|
|
RecursiveAI.OneMail.Render
Renders an email message to a tagged PDF or PNG pages in one call, on OneRender. Native platforms only (not browser WebAssembly). |
|
|
RecursiveAI.OneDocument.Rendering
Read, write, calculate, template and render Word, Excel and PowerPoint documents (OOXML, legacy binary, RTF, ODF) in pure .NET. Not affiliated with Microsoft. Layout and rendering of documents, workbooks and presentations to tagged PDF and PNG for OneDocument, with its own Office layout engine, charts, SmartArt, equations and metafile drawing. |
GitHub repositories
This package is not used by any popular GitHub repositories.