• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

Library to convert HTML to PDF.

I'm looking for a library to convert HTML to PDF.   I'll be doing this in VB/C# .NET code. Currently, I am using Aspose to do this, but it's too slow for my application.  Looking for something fast, as my HTML is fairly simple.
4 Solutions
Lokesh B RDeveloperCommented:

You can use iTextSharp for C#.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
I have used PDFSharp and MigraDoc in several VB.NET projects:


It's free to use even in commercial applications. I've only used it to create and merge PDF files, and not to convert (which is what MigraDoc does, I believe).
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

HLRosenbergerAuthor Commented:
To clarify - I don't want to point to the HTML via a browser.   This is a desktop app, and I want to be able to convert an HTML file.
HLRosenbergerAuthor Commented:
Also, I need to be able to add pages, one at a time, to the PDF.  I'm adding the same basic HTML file (with minor data changes) multiple times to the PDF.  The HTML uses position:absolute for most of the elements.
HLRosenbergerAuthor Commented:
I've installed PDFSharp and TheArtOfDev HTMLRenderer.    I can create a PDF document.   However, I can find sample code (VB.NET or C#.NET) that shows how to use HTMLRenderer and/or with PDFSharp.
Jim RiddlesPrepress/OMS SpecialistCommented:
I have used Syncfusion Essential Studio on a limited basis.  They have a community license, as well, which allows a free license under certain circumstances.  See the following page for more information: Syncfusion Community License
HLRosenbergerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now