NReco.PdfGenerator.LT 1.2.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
.NET Standard 2.0 .NET Framework 4.5
dotnet add package NReco.PdfGenerator.LT --version 1.2.1
NuGet\Install-Package NReco.PdfGenerator.LT -Version 1.2.1
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="NReco.PdfGenerator.LT" Version="1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NReco.PdfGenerator.LT --version 1.2.1
#r "nuget: NReco.PdfGenerator.LT, 1.2.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// 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
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .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.

Version Downloads Last updated
1.2.1 635 1/8/2023
1.1.17 625,560 11/23/2018
1.1.15 77,893 3/30/2017
1.1.14 10,485 9/9/2016
1.1.13 1,738 8/4/2016

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)