RecursiveAI.OneRender.Razor 1.3.1

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

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 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.3.1 50 10/28/2026
1.3.0 50 10/28/2026
1.2.0 51 10/28/2026
1.1.0 52 10/27/2026
1.0.1 45 10/27/2026
1.0.0 49 10/27/2026