specify where wkhtmltopdf binaries are installed/deployed HtmlToPdfConv.WkHtmlToPdfExeName = "wkhtmltopdf.exe"
The following C# code snippet illustrates how to initialize LT build: NReco.PdfGenerator nuget package embeds windows build of wkhtmltopdf.exe (MSVC 2015) and it can work only on Windows Vista/2008 R2 or newer.įor older Windows versions should be used with MinGW-build of wkhtmltopdf. It is possible to include wkhtmltopdf into AWS Lambda function with this instruction. Note: you need to deploy wkhtmltopdf binaries for your target platform(s) (Windows, Linux or OS X) with your. Nuget package includes netstandard20 build and fully compatible with. NET Framework 2.0 and 4.0 runtimes are supported. PdfGenerator works just fine on usual Azure VM instances (Web Role, Worker Role) and Azure Service Fabric. NET platforms where API is not available (like UWP/Univeral Apps) (custom fonts are not loaded on Azure Apps Windows).
BatchMode: optimized generation of several PDF documents in the batch mode.WatermarkPdf: how to generate PDF and watermark it with background image or text.PdfFromFiles: generate one PDF from several HTML documents (files, URLs).MergePdf: produce several PDFs and merge whem into one file with iTextSharp.EncryptPdf: how to generate secured (password protected) PDF.DemoWebForms: generate PDF from textarea (online demo).Illustrates: page breaks, multi-page tables, cover page and table-of-contents, custom header/footer with page numbering DemoMvc: generate PDF from ASP.NET MVC views.DataSetReport: generates PDF with data table from DataSet using XSLT.(wkhtmltopdf binaries are embedded into DLL). Stable and time-proven solution for C# HTML to PDF conversion: all you need is one. automatic table of contents generation by headings (H1/H2/H3).
HTML template for page header/footer, page numbering, cover page.page orientation, custom page size, page margins.merge several HTML pages (files, URLs) into one resulting PDF.create PDF from HTML string, file or URL.NET applications (ASP.NET, ASP.NET MVC, WebForms. Precise rendering: in 99% cases PDF result is identical to the web browser view:īased on WkHtmlToPdf tool that uses WebKit browser engine.
Full support of complex layout, CSS, images/svg, custom fonts, javascript code. Create PDF from HTML page with one line of C# code.