NReco.PdfGenerator.LT
1.2.1
dotnet add package NReco.PdfGenerator.LT --version 1.2.1
NuGet\Install-Package NReco.PdfGenerator.LT -Version 1.2.1
<PackageReference Include="NReco.PdfGenerator.LT" Version="1.2.1" />
paket add NReco.PdfGenerator.LT --version 1.2.1
#r "nuget: NReco.PdfGenerator.LT, 1.2.1"
// Install NReco.PdfGenerator.LT as a Cake Addin
#addin nuget:?package=NReco.PdfGenerator.LT&version=1.2.1
// Install NReco.PdfGenerator.LT as a Cake Tool
#tool nuget:?package=NReco.PdfGenerator.LT&version=1.2.1
HTML to PDF converter for .NET Framework / .NET Core (WkHtmlToPdf wrapper). Generates pretty-looking PDF by HTML template or web page URL. Supports page header/footer, page numbering, custom fonts, javascript execution. This nuget package doesn't include wkhtmltopdf binaries and suitable for cross-platform deployments (Windows, Linux, Mac-OS, Docker).
NOTE: LT nuget is not available for free users. Please contact support@nrecosite.com if you want to get a demo key for evaluation/testing purposes.
var htmlToPdfConv = new NReco.PdfGenerator.HtmlToPdfConverter();
htmlToPdfConv.License.SetLicenseKey("your_id", "your_license_key");
htmlToPdfConv.WkHtmlToPdfExeName = "wkhtmltopdf.exe"; // for Linux/OS-X: "wkhtmltopdf"
htmlToPdfConv.PdfToolPath = "<path_to_wkhtmltopdf_folder>"; // path where wkhtmltopdf binaries are installed/deployed
htmlToPdfConv.GeneratePdfFromFile("http://www.google.com/", null, "google.pdf");
More info (PdfGenerator online demo, examples): https://www.nrecosite.com/pdf_generator_net.aspx
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETFramework 4.5
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on NReco.PdfGenerator.LT:
Package | Downloads |
---|---|
Saurus_Boletos.Engine
Geracao de Boletos |
|
Relier.BoletosNetCore
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
NReco.PdfGenerator.LT doesn't include wkhtmltopdf binaries and therefore suitable for non-Windows deployments (Linux, OS-X) in .NET Core/NET6/NET7 projects. Appropriate wkhtmltopdf binaries should be installed/deployed with your application separately.
v.1.2.1 changes:
- 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)