Pixata.AspNetCore.Pdf.Telerik 1.0.0

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

Pixata.AspNetCore.Pdf.Telerik Pixata.AspNetCore.Pdf.Telerik Nuget package

Pixata

A PDF converter for the DocumentTemplateHelper in Pixata.AspNetCore, using Telerik Document Processing. It turns the HTML rendered from your Blazor template into a PDF, without a browser or a native PDF engine.

A Nuget package is available for this project.

Setup

In Program.cs...

builder.Services.AddPixataAspNetCore<ContactModel>(o => o.DocumentBaseUrl = "https://www.example.com");
builder.Services.AddPixataTelerikPdf();

Then use DocumentTemplateHelper.CreatePdfFromTemplate as described in generating documents and PDFs.

Telerik Document Processing needs a Telerik licence, in the same way as Telerik UI for Blazor. If you already use the Telerik components, your licence covers it.

Writing templates for this converter

Telerik's HTML import is not a browser. It handles text formatting, tables, lists, images and simple CSS well, but it doesn't support flexbox, grid or positioning. Lay templates out with tables, and keep CSS simple.

Images and style sheets

Images and linked style sheets are loaded over HTTP, but only from the site in PdfOptions.BaseUrl (which DocumentTemplateHelper sets for you from DocumentBaseUrl or the current request). Relative URLs are resolved against it. Anything else (another site, an internal address) is replaced with a blank image. This means that user-supplied content in a template, such as a client's notes on an invoice, can't make your server fetch arbitrary URLs.

Images are decoded with Telerik's ImageUtils, which uses SkiaSharp. The Linux native library is included, so this works on Linux hosts (including Alpine) as well as Windows and macOS. AddPixataTelerikPdf() sets FixedExtensibilityManager.ImagePropertiesResolver and JpegImageConverter, unless your app has already set them.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.0 38 10/6/2026