

The following C# code snippet illustrates how to initialize LT build: Since this version doesn't include wkhtmltopdf binaries you need to deploy wkhtmltopdf for your target platform(s) with your. Should be used instead (API is 100% the same). This will work only for Windows deployments.įor cross-platform apps (Linux, Mac-OS, Docker) another nuget NET apps and get leverages of simplified deployment (no need to deploy wkhtmltopdf separately). Starting from version 1.2.1 it is possible to reference NET Framework 4.5+ apps are fully supported. PdfGenerator works fine on 'normal' Azure VM instances and Azure Functions (Windows). Windows Servers with restricted access to GDI API: "shared" Azure Apps is NOT supported.Īzure Apps with a VM-based subscription plan (Basic, Standard, Premium) can use NReco.PdfGenerator, but customs fonts cannot be loaded because of this hosting environment technical limitations (it is possible to use only standard Windows fonts like Arial, Times New Roman etc).NET app cannot start new processes using API (most shared ASP.NET hostings, UWP/Univeral Apps, mobile apps) partial-trust environments where your.WkHtmlToPdf is based on QtWebKit 4.8 (rather old version from 2011) so it doesn't support modern CSS3 features (like flex/grid layout).Ĭomponent cannot be used (does not work) in the following cases: Using API and your hosting environment/platform should allow that. PdfGenerator executes WkHtmlToPdf command line tool in a separate process BatchMode: optimized generation of several PDF documents in the batch mode.


PdfFromFiles: generate one PDF from several HTML documents (files, URLs).WatermarkPdf: how to generate PDF and watermark it with background image or text.MergePdf: produce several PDFs and merge whem into one file with iTextSharp.EncryptPdf: how to generate secured (password protected) PDF.

