Skip to content

Peach PDF is a pure .NET HTML -> PDF rendering library

License

Notifications You must be signed in to change notification settings

eltociear/PeachPDF

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PeachPDF

Peach PDF is a pure .NET HTML -> PDF rendering library. This library does not depend on Puppeter, wkhtmltopdf, or any other process to render the HTML to PDF. As a result, this should work in virtually any environment where .NET 8+ works. As a side benefit of being pure .NET, performance improvements in future .NET versions immediately benefit this library.

PeachPDF Requirements

  • .NET 8

Note: This package depends on PeachPDF.PdfSharpCore and various SixLabors libraries. Both have their own licenses, but the end result is still open source

Installing PeachPDF

Install the PeachPDF package from nuget.org

Using PeachPDF

Simple example to render PDF

PdfGenerateConfig pdfConfig = new(){
  PageSize = PageSize.Letter,
  PageOrientation = PageOrientation.Portrait
};

var stream = new MemoryStream();

var document = PdfGenerator.GeneratePdf(html, pdfConfig);
document.Save(stream);

About

Peach PDF is a pure .NET HTML -> PDF rendering library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 93.7%
  • Smalltalk 5.0%
  • HTML 1.3%