4 packages tagged with “PdfGenerator”
HTML to PDF converter for C#/.NET (WkHtmlToPdf wrapper). Generates pretty-looking PDF by HTML template or web page URL. Web page is rendered using QtWebKit engine and PDF result is very similar to a web browser view. Engine supports page header/footer, page numbering, custom fonts, javascript execution. NReco.PdfGenerator nuget can be used for free in non-SaaS apps that have only one single-server production deployment. This nuget package embeds wkhtmltopdf binaries (for Windows; they're extracted on first use automatically - you don't need to deploy wkhtmltopdf separately) and can be used only on Windows. For cross-platform deployments NReco.PdfGenerator.LT nuget should be used instead. var htmlContent = String.Format("Hello world: {0}",DateTime.Now); var htmlToPdf = new NReco.PdfGenerator.HtmlToPdfConverter(); var pdfBytes = htmlToPdf.GeneratePdf(htmlContent); More info (PdfGenerator online demo, examples): https://www.nrecosite.com/pdf_generator_net.aspx
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
Simple Solution to generate pdf from html string , it is a wrapper over https://github.com/CodeMazeBlog/create-pdf-with-netcore which uses native lib. Configuration was made simple using nuget install
OmniPdf is a .NET library for converting HTML into PDF documents. The library is .NET Standard 2.0 library using 100% managed code. It will run on .NET Framework (4.6.1 or higher) and .NET Core (2.0 or higher). Applications using .NET Core can generate PDF documents on all .NET Core supported operating systems (Windows, Mac, Linux). OmniPdf is designed with modern, agile development methods in mind. The library is accessed through interfaces so you can use dependency injection and unit testing without any additional effort. It is very easy to get started with OmniPdf. Take a look at https://omnipdf.com for more details. Or email us at support@omnipdf.com if you have any questions, comments, concerns, or just want to say hi. This software is fully functional and can be used as a trial to make sure it works for your application. Once you are happy with OmniPdf, purchase a license key and add it to your applicaton. The watermark will no longer appear.