NReco.PdfGenerator 1.1.12

HTML-to-PDF converter component for C# (.NET) based on WkHtmlToPdf utility. Generates pretty-looking PDF documents from .NET application by HTML-layout.

There is a newer version of this package available.
See the version list below for details.
Install-Package NReco.PdfGenerator -Version 1.1.12
dotnet add package NReco.PdfGenerator --version 1.1.12
<PackageReference Include="NReco.PdfGenerator" Version="1.1.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NReco.PdfGenerator --version 1.1.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NReco.PdfGenerator, 1.1.12"
#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 as a Cake Addin
#addin nuget:?package=NReco.PdfGenerator&version=1.1.12

// Install NReco.PdfGenerator as a Cake Tool
#tool nuget:?package=NReco.PdfGenerator&version=1.1.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

v.1.1.12 changes:
- WkHtmlToPdf tool upgraded to version 0.12.3.1 (released 2016-Jan-30).
- fixed bug in batch mode (null reference exception for large HTML input)

v.1.1.11 changes:
- fixed batch mode issue (exception because of incorrect file path handling)

v.1.1.10 changes:
- fixed issue with "Exit with code 1 due to network error" workaround for overloads that accept output file path
- added GeneratePdf(html,coverHtml,outputPdfFilePath) overload
- VC++ 2013 runtime libraries used by wkhtmltopdf.exe ( msvcp120.dll, msvcr120.dll ) are embedded as DLL resources to simplify app deployment (now you don't need to install VC++ redistributable package)

v.1.1.9 changes:
- hotfix for wkhtmltopdf "temp files not removed" issue: when stdin/stdout is used wkhtmltopdf creates temp files anyway and it doesn't remove output PDF temp file. To workaround this issue PdfGenerator will use own temp files for this case.

v.1.1.8 changes:
- added batch mode (BeginBatch/EndBatch): reuse the same wkhtmltopdf.exe process for processing several HTML templates (20%-30% faster). This feature requires commercial license key.
- some code refactoring for better maintainability
- added workaround for "Exit with code 1 due to network error" wkhtmltopdf issue: when "--load-error-handling" or "--load-media-error-handling" set to "ignore" (or "skip") wkhtmltopdf generates PDF output but process is exited with code = 1 and as result WkHtmlToPdfException is thrown. Now this case is handled correctly (exception is not thrown if PDF is generated).
- now NReco.PdfGenerator.dll is a signed (strongly named) assembly

Dependencies

This package has no dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on NReco.PdfGenerator:

Package Downloads
NF-CL-TRELLIS
Core Framework Library
SE2.LabManager.PdfExport
pdfExporter
2001
Basic Library
Employer.Wfat.BoletoNet
Gerador de boleotos
WapicThanos
WapicThanos

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

Version History

Version Downloads Last updated
1.2.0 67,498 6/13/2020
1.1.15 1,271,000 3/30/2017
1.1.14 55,557 2/18/2017
1.1.12 315,569 2/3/2016
1.1.11 40,673 12/14/2015
1.1.10 107,553 10/1/2015
1.1.9 5,416 8/29/2015
1.1.7 17,960 7/5/2015
1.1.6 21,866 3/5/2015
1.1.5 17,757 2/6/2015