fixed batch mode issue (exception because of incorrect file path handling).added LT build: PdfGenerator without embedded wkhtmltopdf.exe (commercial package only).fixed bug in batch mode (null reference exception for large HTML input).WkHtmlToPdf tool upgraded to version 0.12.3.1 (released 2016-Jan-30).for ASP.NET apps wkhtmltopdf binaries are extracted to App_Data\wkhtmltopdf by default. all necessary VC Runtime 2015 dlls are included.WkHtmlToPdf tool upgraded to version 0.12.4 (released 2016-Nov-22).This function is available only for commercial users. added GeneratePdfFromFiles overload that accepts individual options (like header/footer) for each input.framework target changed to net45 (net20 is not supported any more).wkhtmltopdf upgraded to 0.12.6 (released on 2020-Jun-11).If you want to test LT nuget package you can contact support and ask for a demo key. 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. 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. PdfGenerator works fine on usual Azure VM instances (Web Role, Worker Role) and Azure Functions (Windows). NET platforms where API is not available (like UWP/Univeral Apps) Windows Servers with restricted access to GDI API: "shared" Azure Apps is NOT supported.Īzure Apps with VM-based subscription plan (Basic, Standard, Premium) can use NReco.PdfGenerator, but customs fonts are not loaded (it is possible to use only standard Windows fonts like Arial, Times New Roman etc).partial-trust environments where starting new processes is prohibited (shared ASP.NET hostings).WkHtmlToPdf is based on QtWebKit 4.8 (rather old version released in 2011) so it doesn't support modern CSS3 features (like flex/grid layout).Ĭomponent cannot be used (does not work) in the following cases: With and your project environment/platform should allow that. PdfGenerator executes WkHtmlToPdf command line tool (x86 windows build) in the separate process 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |