HtmlRenderer.PdfSharp 1.5.2

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

Welcome to the HTML Renderer PdfSharp library!

This library provides the ability to generate PDF documents from HTML snippets using static rendering code. For more info see HTML Renderer on GitHub: https://github.com/ArthurHub/HTML-Renderer

DEMO APPLICATION

HTML Renderer Demo application showcases HTML Renderer capabilities, use it to explore and learn on the library: https://codeplexarchive.org/ProjectTab/Wiki/HtmlRenderer/Documentation/Demo%20application

FEEDBACK / RELEASE NOTES

If you have problems, wish to report a bug, or have a suggestion, please open an issue on the HTML Renderer issue page: https://github.com/ArthurHub/HTML-Renderer/issues

For full release notes and all versions see: https://github.com/ArthurHub/HTML-Renderer/releases

QUICK START

For more Quick Start see: https://codeplexarchive.org/ProjectTab/Wiki/HtmlRenderer/Documentation/Documentation


Quick Start: Create PDF from HTML snippet using PdfSharp

class Program
{
    private static void Main(string[] args)
    {
        PdfDocument pdf = PdfGenerator.GeneratePdf("<p><h1>Hello World</h1>This is html rendered text</p>", PageSize.A4);
        pdf.Save("document.pdf");
    }
}
Product Compatible and additional computed target framework versions.
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on HtmlRenderer.PdfSharp:

Package Downloads
CyprusParadise.Core

Description

Manacost.AB

Description

Plugin.Xamarin.Tools

Set of several tools and dependency services for xamarin

Spxus.PdfService

My package description.

SDHC.PdfConvert

My package description.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on HtmlRenderer.PdfSharp:

Repository Stars
nea/MarkdownViewerPlusPlus
A Notepad++ Plugin to view a Markdown file rendered on-the-fly
Version Downloads Last Updated
1.5.2 2,796 12/22/2025
1.5.1 4,361 12/12/2025
1.5.1-beta1 1,801,462 11/14/2016
1.5.0.6 3,900,717 5/6/2015
1.5.0.5 215,166 10/9/2014
1.5.0.3 29,412 9/6/2014
1.5.0.1 24,138 9/3/2014
1.5.0 63,308 9/3/2014