Info
Version: | 1.2.1 |
Author(s): | Vitalii Fedorchenko |
Last Update: | Sunday, January 8, 2023 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://www.nrecosite.com/pdf_generator_net.aspx |
NuGet Url: | https://www.nuget.org/packages/NReco.PdfGenerator |
Install
Install-Package NReco.PdfGenerator
dotnet add package NReco.PdfGenerator
paket add NReco.PdfGenerator
NReco.PdfGenerator Download (Unzip the "nupkg" after downloading)
Dependencies
7 packages depend on this package.
Tags
Generates pretty-looking PDF by HTML template or web page URL. Web page is rendered using QtWebKit engine and PDF result is very similar to a web browser view.
Engine supports page header/footer, page numbering, custom fonts, javascript execution.
NReco.PdfGenerator nuget can be used for free in non-SaaS apps that have only one single-server production deployment.
This nuget package embeds wkhtmltopdf binaries (for Windows; they're extracted on first use automatically - you don't need to deploy wkhtmltopdf separately) and can be used only on Windows. For cross-platform deployments NReco.PdfGenerator.LT nuget should be used instead.
var htmlContent = String.Format("Hello world: {0}",DateTime.Now);
var htmlToPdf = new NReco.PdfGenerator.HtmlToPdfConverter();
var pdfBytes = htmlToPdf.GeneratePdf(htmlContent);
More info (PdfGenerator online demo, examples): https://www.nrecosite.com/pdf_generator_net.aspx.