Closed . This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 months 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?
Last Updated: October 2020
This is the list of options for HTML to PDF conversion in .NET that I have put together (some free some paid)
GemBox.Document
https://www.nuget.org/packages/GemBox.Document/
Free (up to 20 paragraphs)
$680 – https://www.gemboxsoftware.com/document/pricelist
https://www.gemboxsoftware.com/document/examples/c-sharp-convert-html-to-pdf/307
PDF Metamorphosis .Net
https://www.nuget.org/packages/sautinsoft.pdfmetamorphosis/
$539 – $1078 – https://www.sautinsoft.com/products/pdf-metamorphosis/order.php
https://www.sautinsoft.com/products/pdf-metamorphosis/convert-html-to-pdf-dotnet-csharp.php
HtmlRenderer.PdfSharp
https://www.nuget.org/packages/HtmlRenderer.PdfSharp/1.5.1-beta1
BSD-UNSPECIFIED License
PuppeteerSharp
https://www.puppeteersharp.com/examples/index.html
MIT License
https://github.com/kblok/puppeteer-sharp
EO.Pdf
https://www.nuget.org/packages/EO.Pdf/
$799 – https://www.essentialobjects.com/Purchase.aspx?f=3
WnvHtmlToPdf_x64
https://www.nuget.org/packages/WnvHtmlToPdf_x64/
$750 – $1600 – http://www.winnovative-software.com/Buy.aspx
demo – http://www.winnovative-software.com/demo/default.aspx
IronPdf
https://www.nuget.org/packages/IronPdf/
$399 – $1599 – https://ironpdf.com/licensing/
https://ironpdf.com/examples/using-html-to-create-a-pdf/
Spire.PDF
https://www.nuget.org/packages/Spire.PDF/
Free (up to 10 pages)
$599 – $1799 – https://www.e-iceblue.com/Buy/Spire.PDF.html
https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-HTML-to-PDF-Customize-HTML-to-PDF-Conversion-by-Yourself.html
Aspose.Html
https://www.nuget.org/packages/Aspose.Html/
$599 – $1797 – https://purchase.aspose.com/pricing/html/net
https://docs.aspose.com/html/net/html-to-pdf-conversion/
EvoPDF
https://www.nuget.org/packages/EvoPDF/
$450 – $1200 – http://www.evopdf.com/buy.aspx
ExpertPdfHtmlToPdf
https://www.nuget.org/packages/ExpertPdfHtmlToPdf/
$550 – $1200 – https://www.html-to-pdf.net/Pricing.aspx
Zetpdf
https://zetpdf.com
$299 – $599 – https://zetpdf.com/pricing/
Is not a well know or supported library – ZetPDF – Does anyone know the background of this Product?
PDFtron
https://www.pdftron.com/documentation/samples/cs/HTML2PDFTes
$4000/year – https://www.pdftron.com/licensing/
WkHtmlToXSharp
https://github.com/pruiz/WkHtmlToXSharp
Free
Concurrent conversion is implemented as processing queue.
SelectPDF
https://www.nuget.org/packages/Select.HtmlToPdf/
Free (up to 5 pages)
$499 – $799 – https://selectpdf.com/pricing/
https://selectpdf.com/pdf-library-for-net/
If none of the options above help you you can always search the NuGet packages:
https://www.nuget.org/packages?q=html+pdf