NReco.PdfGenerator
1.2.1
Prefix Reserved
dotnet add package NReco.PdfGenerator --version 1.2.1
NuGet\Install-Package NReco.PdfGenerator -Version 1.2.1
<PackageReference Include="NReco.PdfGenerator" Version="1.2.1" />
paket add NReco.PdfGenerator --version 1.2.1
#r "nuget: NReco.PdfGenerator, 1.2.1"
// Install NReco.PdfGenerator as a Cake Addin #addin nuget:?package=NReco.PdfGenerator&version=1.2.1 // Install NReco.PdfGenerator as a Cake Tool #tool nuget:?package=NReco.PdfGenerator&version=1.2.1
HTML to PDF converter for C#/.NET (WkHtmlToPdf wrapper). 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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
NuGet packages (13)
Showing the top 5 NuGet packages that depend on NReco.PdfGenerator:
Package | Downloads |
---|---|
Bnsights.Core
Package Description |
|
NF-CL-TRELLIS
Core Framework Library |
|
TuanZi.Hosting.Api
TuanZi Framework Non-Business WebAPI Implementation, encapsulates WebAPI implementation for non-business modules such as authentication, permissions, system, messages, etc. |
|
SE2.LabManager.PdfExport
pdfExporter |
|
UnyTools.Boleto
UnyBoleto |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on NReco.PdfGenerator:
Repository | Stars |
---|---|
smartstore/SmartStoreNET
Open Source ASP.NET MVC Enterprise eCommerce Shopping Cart Solution
|
|
mike-ward/Markdown-Edit
My attempt at a markdown editor for windows
|
|
BoletoNet/boletonet
Boleto.Net is a library developed for use in Brazil, given it has been programmed with Brazilian retail legislation and business rules for bank registered billing integration.
|
|
BoletoNet/boleto2net
Nova versão do Boleto.Net
|
NReco.PdfGenerator nuget includes wkhtmltopdf binaries (Windows build) and can be used only on Windows; for cross-platform deployments use NReco.PdfGenerator.LT nuget package.
v.1.2.1 changes:
- added netstandard2.0 build: now NReco.PdfGenerator nuget (includes wkhtmltopdf) can be used in NET6/NET7/.NET Core apps (Windows deployments only) with free offering!
- added more options to PageSize enum (A0-A9, B0-B9, Legal)
- added static License.SetLicenseKey to set a license key globally (for all HtmlToPdfConverter instances)
v.1.2.0 changes:
- wkhtmltopdf upgraded to 0.12.6 (released on 2020-Jun-11)
- framework target changed to net45 (net20 is not supported anymore)
v.1.1.15 changes:
- added GeneratePdfFromFiles overload that accepts individual options (like header/footer) for each input
v.1.1.14 changes:
- WkHtmlToPdf tool upgraded to version 0.12.4 (released 2016-Nov-22)
- all necessary VC++ Runtime 2015 dlls are included
- now for ASP.NET apps wkhtmltopdf binaries are extracted to App_Data\wkhtmltopdf by default