NReco.PdfGenerator.LT 1.2.1

Prefix Reserved
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 and Polyglot Notebooks. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
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 217,873 1/8/2023
1.1.17 890,153 11/23/2018
1.1.15 86,283 3/30/2017
1.1.14 15,490 9/9/2016
1.1.13 1,988 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)