Solved

Library to convert HTML to PDF.

Posted on 2016-11-09
8
67 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 14

Assisted Solution

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

You can use iTextSharp for C#.

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

Assisted Solution

by:dbrunton
dbrunton earned 83 total points
ID: 41881632
0
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 251 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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 5

Assisted Solution

by:Jim Riddles
Jim Riddles earned 83 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

831 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