RecursiveAI.OneMail.Render
1.0.0
Prefix Reserved
See the version list below for details.
dotnet add package RecursiveAI.OneMail.Render --version 1.0.0
NuGet\Install-Package RecursiveAI.OneMail.Render -Version 1.0.0
<PackageReference Include="RecursiveAI.OneMail.Render" Version="1.0.0" />
<PackageVersion Include="RecursiveAI.OneMail.Render" Version="1.0.0" />
<PackageReference Include="RecursiveAI.OneMail.Render" />
paket add RecursiveAI.OneMail.Render --version 1.0.0
#r "nuget: RecursiveAI.OneMail.Render, 1.0.0"
#:package RecursiveAI.OneMail.Render@1.0.0
#addin nuget:?package=RecursiveAI.OneMail.Render&version=1.0.0
#tool nuget:?package=RecursiveAI.OneMail.Render&version=1.0.0
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
Resourcescallback 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.0/docs/render.md. Licence: MIT OR Apache-2.0.
This project is unaffiliated with other products named OneMail.
| 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.OneMail (>= 1.0.0)
- RecursiveAI.OneRender (>= 1.3.2)
- RecursiveAI.OneRender.Image (>= 1.3.2)
- RecursiveAI.OneRender.Pdf (>= 1.3.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
See CHANGELOG.md in the repository.