Winnovative Html To Pdf Converter

Winnovative HTML to PDF Converter Winnovative HTML to PDF Converter for.NET is a library that can be integrated in ASP.NET and MVC web sites, Azure Cloud Services, Windows Forms and WPF desktop applications to convert URLs, HTML strings and streams to PDF, to SVG or to images. Download Winnovative HTML to PDF Converter. Create PDF files out of HTML content or directly from a web page, add pictures and other details later on and much more with this powerful application.

Winnovative Html To Pdf Converter
Winnovative Free HTML to PDF Converter is a .NET application using the Winnovative HTML to PDF Converter Library for .NET as rendering engine and is written in C#. The application does not require any printer driver installation or other third party tools and is delivered as a simple Windows .exe file. You can convert to PDF any HTML page from web or a local HTML file completely for free. The resulted PDF has no demo stamps or size limitations. The application allows you to add headers and footers, page numbers, set page size, page orientation and PDF compression level, embed true type fonts. Using the same application you can also convert HTML to BMP, JPEG, PNG or to any other image format. Winnovative HTML to PDF Converter has full support for HTML tags and CSS, SVG, page breaks control with CSS styles, repeating HTML table header on each PDF page, live URLs and internal links in PDF, automatically generated bookmarks, HTML in the headers and footers. It also offers advanced support for HTML5 features like CSS3, inline SVG, Canvas and Web Fonts.
LicenseFree
File Size19.12 MB
Version14.5
Operating System Windows Vista Windows 98 Windows 7 Windows Server 2008 Windows 8 Windows Windows NT Windows 10 Windows 2000 Windows 2003 Windows XP Windows Me
System Requirements.NET Framework 4.0
Active1 month ago

I want to generate a PDF by passing HTML contents to a function. I have made use of iTextSharp for this but it does not perform well when it encounters tables and the layout just gets messy.

Is there a better way?

Amedee Van Gasse
4,3403 gold badges31 silver badges62 bronze badges
SandHurst

35 Answers

12 next

Update: I would now recommend PupeteerSharp over wkhtmltopdf.

Try wkhtmtopdf. It is the best tool I have found so far.

For .NET, you may use this small library to easily invoke wkhtmtopdf command line utility.

MarkoMarko
3,9392 gold badges22 silver badges43 bronze badges

EDIT: New SuggestionHTML Renderer for PDF using PdfSharp

(After trying wkhtmltopdf and suggesting to avoid it)

HtmlRenderer.PdfSharp is a 100% fully C# managed code, easy to use, thread safe and most importantly FREE(New BSD License) solution.

Usage

  1. Download HtmlRenderer.PdfSharp nuget package.
  2. Use Example Method.

A very Good Alternate Is a Free Version of iTextSharp

Until version 4.1.6 iTextSharp was licensed under the LGPL licence and versions until 4.16 (or there may be also forks) are available as packages and can be freely used. Of course someone can use the continued 5+ paid version.

I tried to integrate wkhtmltopdf solutions on my project and had a bunch of hurdles.

I personally would avoid using wkhtmltopdf - based solutions on Hosted Enterprise applications for the following reasons.

  1. First of all wkhtmltopdf is C++ implemented not C#, and you willexperience various problems embedding it within your C# code,especially while switching between 32bit and 64bit builds of yourproject. Had to try several workarounds including conditionalproject building etc. etc. just to avoid 'invalid format exceptions'on different machines.
  2. If you manage your own virtual machine its ok. But if your projectis running within a constrained environment like (Azure(Actually is impossible withing azure as mentioned by theTuesPenchin author) , Elastic Beanstalk etc) it's a nightmare to configure that environment only for wkhtmltopdf to work.
  3. wkhtmltopdf is creating files within your server so you have tomanage user permissions and grant 'write' access to wherewkhtmltopdf is running.
  4. Wkhtmltopdf is running as a standalone application, so its notmanaged by your IIS application pool. So you have to either host itas a service on another machine or you will experience processing spikes and memory consumption within your productionserver.
  5. It uses temp files to generate the pdf, and in cases Like AWSEC2 which has really slow disk i/o it is a big performanceproblem.
  6. The most hated 'Unable to load DLL 'wkhtmltox.dll' error reportedby many users.

--- PRE Edit Section ---

For anyone who want to generate pdf from html in simpler applications / environments I leave my old post as suggestion.

or Especially For MVC Web Applications (But I think you may use it in any .net application)

They both utilize the wkhtmtopdf binary for converting html to pdf. Which uses the webkit engine for rendering the pages so it can also parse css style sheets.

They provide easy to use seamless integration with C#.

Rotativa can also generate directly PDFs from any Razor View.

Additionally for real world web applications they also manage thread safety etc...

Anestis KivranoglouAnestis Kivranoglou
4,8184 gold badges27 silver badges39 bronze badges

Most HTML to PDF converter relies on IE to do the HTML parsing and rendering. This can break when user updates their IE. Here is one that does not rely on IE.

The code is something like this:

Like many other converters, you can pass text, file name, or Url. The result can be saved into a file or a stream.

Andre Lombaard
4,82512 gold badges49 silver badges88 bronze badges
JasonJason

I recently performed a PoC regarding HTML to PDF conversion and wanted to share my results.

My favorite by far is OpenHtmlToPdf

Advantages of this tool:

  • Very good HTML compatibility (e.g. it was the only tool in my example that correctly repeated table headers when a table spanned multiple pages)
  • Fluent API
  • Free and OpenSource (Creative Commons Attribution 3.0 license)
  • Available via NuGet

Other tools tested:

  • ExpertPDF (http://www.html-to-pdf.net/)
  • IronPDF (http://ironpdf.com/)
  • iTextSharp (https://sourceforge.net/projects/itextsharp/)
  • NReco PDF Creator for .NET(http://www.nrecosite.com/pdf_generator_net.aspx)
  • HTML renderer for PDF Sharp(https://www.nuget.org/packages/HtmlRenderer.PdfSharp/)
  • SelectPDF community edition (http://selectpdf.com/community-edition/)
MarkusMarkus

I highly recommend NReco, seriously. It has the free and paid version, and really worth it. It uses wkhtmtopdf in background, but you just need one assembly. Fantastic.

Example of use:

Install via NuGet.

Disclaimer: I'm not the developer, just a fan of the project :)

Kim TranjanKim Tranjan
3,1743 gold badges28 silver badges38 bronze badges

Winnovative offer a .Net PDF library that supports HTML input. They offer an unlimited free trial. Depending on how you wish to deploy your project, this might be sufficient.

StewartStewart
2,9656 gold badges27 silver badges39 bronze badges

Essential PDF can be used to convert HTML to PDF: C# sample. The sample linked to here is ASP.NET based, but the library can be used from Windows Forms, WPF, ASP.NET Webforms, and ASP.NET MVC. The library offers the option of using different HTML rendering engines : Internet Explorer (default) and WebKit (best output).

The whole suite of controls is available for free (commercial applications also) through the community license program if you qualify. The community license is the full product with no limitations or watermarks.

Note: I work for Syncfusion.

Davis JebarajDavis Jebaraj

I used ExpertPDF Html To Pdf Converter. Does a decent job. Unfortunatelly, it's not free.

charpdevel0p3rcharpdevel0p3r

There's also a new web-based document generation app - DocRaptor.com. Seems easy to use, and there's a free option.

PaulPaul

If you don't really need a true .Net PDF library, there are numerous free HTML to PDF tools, many of which can run from a command-line.

One solution would be to pick one of those and then write a thin wrapper around that in C#. E.g., as done in this tutorial.

StewartStewart
2,9656 gold badges27 silver badges39 bronze badges

There are good news for HTML-to-PDF demands. As this answer showed, the W3C standard css-break-3 will solve the problem... It is a Candidate Recommendation with plan to turn into definitive Recommendation in 2017 or 2018, after tests.

As not-so-standard there are solutions, with plugins for C#, as showed by print-css.rocks.


ABCpdf.NET (http://www.websupergoo.com/abcpdf-5.htm)

We use and recommend.

Very good component, it not only convert a webpage to PDF like an image but really convert text, image, formatting, etc...

It's not free but it's cheap.

Christophe Trevisani ChaveyChristophe Trevisani Chavey

Below is an example of converting html + css to PDF using iTextSharp (iTextSharp + itextsharp.xmlworker)

Sergey MalyutinSergey Malyutin
8681 gold badge13 silver badges33 bronze badges

It depends on any other requirements you have.

A really simple but not easily deployable solution is to use a WebBrowser control to load the Html and then using the Print method printing to a locally installed PDF printer. There are several free PDF printers available and the WebBrowser control is a part of the .Net framework.

EDIT:If you Html is XHtml you can use PDFizer to do the job.

Rune GrimstadRune Grimstad
30.8k8 gold badges51 silver badges72 bronze badges

PDF Vision is good. However, you have to have Full Trust to use it. I already emailed and asked why my HTML wasn't being converted on the server but it worked fine on localhost.

Community
Converter
MikeMike

I found the following library more effective in converting html to pdf.
nuget: https://www.nuget.org/packages/Select.HtmlToPdf/

Praveen Kumar ThalluriPraveen Kumar Thalluri

Last Updated: Sept 2019

This is the list of options for HTML to PDF conversion in .NET that I have put together (some free some paid)

  • HtmlRenderer.PdfSharp

    • BSD-UNSPECIFIED License
  • PuppeteerSharp

    • MIT License
  • EO.Pdf

    • $ 749 https://www.essentialobjects.com/Purchase.aspx?f=3
  • WnvHtmlToPdf_x64

    • $ 1200 - http://www.winnovative-software.com/Buy.aspx
    • demo - http://www.winnovative-software.com/demo/default.aspx
  • IronPdf

    • $ 399 - $ 1599 - https://ironpdf.com/licensing/
  • Spire.PDF

    • $ 599 https://www.e-iceblue.com/Buy/Spire.PDF.html
  • Aspose.Html

    • https://www.nuget.org/packages/Aspose.Html/
    • $ 599 - https://purchase.aspose.com/pricing
  • EvoPDF

    • $ 450 - $ 1200 - http://www.evopdf.com/buy.aspx
  • ExpertPdfHtmlToPdf

    • $ 550 - $ 1200 - https://www.html-to-pdf.net/Pricing.aspx
  • Zetpdf

    • $ 249 - https://zetpdf.com/pricing/
    • Is not a well know or supported library - ZetPDF - Does anyone know the background of this Product?
  • PDFtron

    • $4000/year
  • WkHtmlToXSharp

    • Free
    • Concurrent conversion is implemented as processing queue
  • SelectPDF

    • Free (up to 5 pages)
    • $ 499 - 1 developer, 1 deployment machine https://selectpdf.com/pricing/

If none of the options above help you you can always search the NuGet packages https://www.nuget.org/packages?q=html+pdf

Mauricio Gracia GutierrezMauricio Gracia Gutierrez
5,8713 gold badges41 silver badges61 bronze badges

I was also looking for this a while back. I ran into HTMLDOC http://www.easysw.com/htmldoc/ which is a free open source command line app that takes an HTML file as an argument and spits out a PDF from it. It's worked for me pretty well for my side project, but it all depends on what you actually need.

The company that makes it sells the compiled binaries, but you are free to download and compile from source and use it for free. I managed to compile a pretty recent revision (for version 1.9) and I intend on releasing a binary installer for it in a few days, so if you're interested I can provide a link to it as soon as I post it.

Edit (2/25/2014): Seems like the docs and site moved to http://www.msweet.org/projects.php?Z1

enriqueinenriquein
6911 gold badge9 silver badges27 bronze badges

You need to use a commercial library if you need perfect html rendering in pdf.

ExpertPdf Html To Pdf Converter is very easy to use and it supports the latest html5/css3. You can either convert an entire url to pdf:

or a html string:

You also have the alternative to directly save the generated pdf document to a Stream of file on the disk.

charpdevel0p3rcharpdevel0p3r

I'm the author of the Rotativa package. It allows to create PDF files directly from razor views:

Trivial to use and you have full control on the layout since you can use razor views with data from your Model and ViewBag container.

I developed a SaaS version on Azure. It makes it even easier to use it from WebApi or any .Net app, service, Azure website, Azure webjob, whatever runs .Net.

Free accounts available.

Giorgio BozioGiorgio Bozio
2,8202 gold badges14 silver badges19 bronze badges

Here is a wrapper for wkhtmltopdf.dll by pruiz

And a wrapper for wkhtmltopdf.exe by Codaxy
- also on nuget.

GarfieldGarfield
5973 gold badges9 silver badges20 bronze badges

Best Tool i have found and used for generating PDF of javascript and styles rendered views or html pages is phantomJS.

Download the .exe file with the rasterize.js function found in root of exe of example folder and put inside solution.

It Even allows you to download the file in any code without opening that file also it also allows to download the file when the styles and specially jquery are applied.

Following code generate PDF File :


As a representative of HiQPdf Software I believe the best solution is HiQPdf HTML to PDF converter for .NET. It contains the most advanced HTML5, CSS3, SVG and JavaScript rendering engine on market. There is also a free version of the HTML to PDF library which you can use to produce for free up to 3 PDF pages. The minimal C# code to produce a PDF as a byte[] from a HTML page is:

You can find more detailed examples both for ASP.NET and MVC in HiQPdf HTML to PDF Converter examples repository.

HiQPdfHiQPdf

This is a free library and works very easily : OpenHtmlToPdf

Abhishek SenguptaAbhishek Sengupta
5921 gold badge4 silver badges14 bronze badges

Try this PDF Duo .Net converting component for converting HTML to PDF from ASP.NET application without using additional dlls.

You can pass the HTML string or file, or stream to generate the PDF.Use the code below (Example C#):

Info + C#/VB examples you can find at: http://www.duodimension.com/html_pdf_asp.net/component_html_pdf.aspx

ConstantineConstantine

Winnovative Html To Pdf Converter Freeware

Winnovative html to pdf converter freeware

Ok, using this technologies....

The src can be downloaded from here it needs nant

madth3
6,6296 gold badges41 silver badges62 bronze badges
jjchiwjjchiw

Instead of parsing HTML directly to PDF, you can create an Bitmap of your HTML-page and then insert the Bitmap into your PDF, using for example iTextSharp.

Here's a code how to get an Bitmap of an URL. I found it somewhere here on SO, if I find the source I'll link it.

Jimmy MattssonJimmy Mattsson
1,5073 gold badges16 silver badges28 bronze badges

With Winnovative HTML to PDF converter you can convert a HTML string in a single line

The base URL is used to resolve the images referenced by relative URLs in HTML string. Alternatively you can use full URLs in HTML or embed images using src='data:image/png' for image tag.

In answer to 'fubaar' user comment about Winnovative converter, a correction is necessary. The converter does not use IE as rendering engine. It actually does not depend on any installed software and the rendering is compatible with WebKit engine.

WinnovativeWinnovative

If you want user to download the pdf of rendered page in the browser then the easiest solution to the problem is

on client side it will prompt user to save pdf of current page. You can also customize the appearance of pdf by linking style

print.css is applied to the html while printing.

Limitation

You can't store the file on server side.User prompt to print the page than he had to save page manually.Page must to be rendered in a tab.

Ravi Kumar MistryRavi Kumar Mistry
5521 gold badge6 silver badges18 bronze badges

Winnovative Html To Pdf Converter Software

PDFmyURL recently released a .NET component for web page / HTML to PDF conversion as well. This has a very user friendly interface, for example:

C# Convert Webpage To Pdf

Documentation: PDFmyURL .NET component documentation

Disclaimer: I work for the company that owns PDFmyURL

user1914292user1914292

Free Html To Pdf Converter

12 next

Winnovative Html To Pdf Converter Free Download

protected by Brad LarsonMay 29 '14 at 17:00

Html To Word Converter

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?