RecursiveAI.OneRender.Razor
1.1.0
See the version list below for details.
dotnet add package RecursiveAI.OneRender.Razor --version 1.1.0
NuGet\Install-Package RecursiveAI.OneRender.Razor -Version 1.1.0
<PackageReference Include="RecursiveAI.OneRender.Razor" Version="1.1.0" />
<PackageVersion Include="RecursiveAI.OneRender.Razor" Version="1.1.0" />
<PackageReference Include="RecursiveAI.OneRender.Razor" />
paket add RecursiveAI.OneRender.Razor --version 1.1.0
#r "nuget: RecursiveAI.OneRender.Razor, 1.1.0"
#:package RecursiveAI.OneRender.Razor@1.1.0
#addin nuget:?package=RecursiveAI.OneRender.Razor&version=1.1.0
#tool nuget:?package=RecursiveAI.OneRender.Razor&version=1.1.0
RecursiveAI.OneRender.Razor
Renders a Razor component to a PDF or an image in one call, on .NET's HtmlRenderer. Stylesheets, images and fonts are served from the app's wwwroot and static web assets; nothing is fetched over the network.
builder.Services.AddOneRender();
RazorPdfResult pdf = await renderer.RenderPdfAsync<Invoice>(parameters);
RazorImageResult img = await renderer.RenderImageAsync<Invoice>(parameters);
byte[] png = img.ToPng();
It is a thin layer over HtmlPdf and HtmlRender, and the output is identical to calling those with the same markup. The package references the ASP.NET Core shared framework.
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.OneRender (>= 1.1.0)
- RecursiveAI.OneRender.Image (>= 1.1.0)
- RecursiveAI.OneRender.Pdf (>= 1.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.