?
Solved

Library to convert HTML to PDF.

Posted on 2016-11-09
8
Medium Priority
?
129 Views
Last Modified: 2016-11-21
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.
0
Comment
Question by:HLRosenberger
8 Comments
 
LVL 15

Assisted Solution

by:Lokesh B R
Lokesh B R earned 332 total points
ID: 41881626
Hi,

You can use iTextSharp for C#.

https://sourceforge.net/projects/itextsharp/
0
 
LVL 50

Assisted Solution

by:dbrunton
dbrunton earned 332 total points
ID: 41881632
0
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 1004 total points
ID: 41881951
I have used PDFSharp and MigraDoc in several VB.NET projects:

http://www.pdfsharp.net/?AspxAutoDetectCookieSupport=1

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).
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Author Comment

by:HLRosenberger
ID: 41882206
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.
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 41882221
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.
0
 
LVL 1

Author Comment

by:HLRosenberger
ID: 41882299
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.
0
 
LVL 9

Assisted Solution

by:Jim Riddles
Jim Riddles earned 332 total points
ID: 41882385
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
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 41895891
thanks
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question