Solved

Library to convert HTML to PDF.

Posted on 2016-11-09
8
42 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
Comment Utility
Hi,

You can use iTextSharp for C#.

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

Assisted Solution

by:dbrunton
dbrunton earned 83 total points
Comment Utility
0
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 251 total points
Comment Utility
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
 
LVL 1

Author Comment

by:HLRosenberger
Comment Utility
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 1

Author Comment

by:HLRosenberger
Comment Utility
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
Comment Utility
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 4

Assisted Solution

by:Jim Riddles
Jim Riddles earned 83 total points
Comment Utility
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
Comment Utility
thanks
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now