11/14/2016 - 7:45 AM

HTML to PDF libraries

HTML to PDF libraries

TuesPechkin ( <https://github.com/tuespetre/TuesPechkin> https://github.com/tuespetre/TuesPechkin)
A .NET wrapper for the wkhtmltopdf library with an object-oriented API.
The library can't convert to pdf multiple html pages at the same time. The conversion tasks are sequential.
Pretty good HTML to PDF conversion thanks to good CSS interpretation.
<https://creativecommons.org/licenses/by/3.0/> Creative Commons Attribution 3.0 license
Page orientation cannot be specified at the page level, only at the document level which results in all pages being either in portrait mode or in landscape mode.
The library can't concatenate multiple pdf documents into one big document.

iTextSharp ( <https://sourceforge.net/projects/itextsharp/> https://sourceforge.net/projects/itextsharp/)
A .NET PDF library that allows you to CREATE, ADAPT, INSPECT and MAINTAIN documents in the Portable Document Format.
The library is poor at handling CSS.
The library can concatenate multiple pdf documents into one no matter the orientation of the pages.
<https://en.wikipedia.org/wiki/Affero_General_Public_License> Affero General Public License
Can handle multiple conversion tasks simultaneously
<http://itextpdf.com/Pricing> Commercial licenses

PDFSharp ( <http://www.pdfsharp.net/> http://www.pdfsharp.net/)
PDFsharp is the Open Source .NET library that easily creates and processes PDF documents on the fly from any .NET language. The same drawing routines can be used to create PDF documents, draw on the screen, or send output to any printer
Cannot convert directly HTML to PDF
Open-source project
<http://www.pdfsharp.net/Licensing.ashx> http://www.pdfsharp.net/Licensing.ashx

Winnovative HTML to PDF Converter ( <http://www.winnovative-software.com/> http://www.winnovative-software.com/)
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.
Bad at converting large documents (~1s/page).
Very good CSS interpretation.
Good licensing.
<http://www.winnovative-software.com/buy.aspx> http://www.winnovative-software.com/buy.aspx

ExpertPDF ( <http://www.html-to-pdf.net/> http://www.html-to-pdf.net/)
Bad at converting large documents.
Not so good for concurrency.
Decent CSS support.
Good licensing.
<http://www.html-to-pdf.net/Pricing.aspx> http://www.html-to-pdf.net/Pricing.aspx

HiQPdf ( <http://www.hiqpdf.com/> http://www.hiqpdf.com/)
Bad at converting large documents.
Concurrency for large docs is an issue.
Excellent CSS support.
Good licensing.
 <http://www.hiqpdf.com/purchase.aspx> http://www.hiqpdf.com/purchase.aspx