RecursiveAI.OneMail.Render 1.0.1

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

OneMail.Render

Turns an email message into a tagged PDF or PNG pages in one call, on OneRender. It is the optional rendering package of OneMail: the message's display HTML (sanitised body, header block, attachment list, inline images from the message itself) is laid out and drawn without a browser.

Native platforms only; not browser WebAssembly.

using RecursiveAI.OneMail;

IMailItem message = Mail.Parse(File.ReadAllBytes("message.eml"));
await using FileStream pdf = File.Create("message.pdf");
await message.ToPdfAsync(pdf);

await message.ToPngAsync(page => File.Create($"message-{page}.png"));
  • Nothing is fetched. Remote images, fonts and style sheets stay blocked unless your policy allows them, and even then only a Resources callback you supply provides their bytes; what the page asked for and did not get is listed in the result.
  • Text in scripts beyond Latin, Greek and Cyrillic (CJK, Arabic, Hebrew, emoji, ...) needs the matching RecursiveAI.OneRender.Fonts.* package referenced in your application; it registers itself.
  • Limits are on by default: page count, time, and the sanitiser's size and nesting limits. A limit stops the render with a typed exception or is reported as a defect.

Project home and source: https://github.com/recursive-ai-oss/onemail-csharp. Details: https://github.com/recursive-ai-oss/onemail-csharp/blob/v1.0.1/docs/render.md. Licence: MIT OR Apache-2.0.

This project is unaffiliated with other products named OneMail.

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.1 83 11/5/2026
1.0.0 80 11/5/2026

See CHANGELOG.md in the repository.