views:

506

answers:

9

What .net component for creating PDF files can you recommend ?

One condition is that it has to be able to create PDF files from HTML

EDIT: Preferably it would be free.

+2  A: 

Aspose.pdf has worked well for me.

Galwegian
+3  A: 

That has been covered here: http://stackoverflow.com/questions/177/how-do-i-programmatically-create-a-pdf-in-my-net-application

Granted, the accepted answer ended up being Aspose.pdf, but there are 30 other answers there in case that doesn't work for your needs. Like, if you don't want to actually pay for it :P

Adam Haile
+1  A: 

Good free java port to c# --

IText#

A: 

I did search before asking yet i didn't find that thread. But on the other hand I am asking about something more specific ( free and be able to convert from html).

sirrocco
+1  A: 

In addition to the thread Adam Haile mentioned, see also this one.

Alexander Kojevnikov
+3  A: 

SharpPDF is top notch. Fast to get started and covers enough ground to support most projects.

When I used it on a .NET project I did add a couple of functions so that I could position page components using measures other than points - plus I prefer to work from the top of the page rather than from the bottom as PDF docs do.

Oh and it's free.

+1  A: 

Like Bryan, I've also used iText Sharp. There is also a book on the Java version (iText) iText in Action: Creating and Manipulating PDF which although Java, gives good guidance on how to use it. I think the author is also one of the folks who ported iText to .NET. There is also a great tutorial here.

Mike L
A: 
PDF Creator Pilot - PDF Library for C++, C#, Delphi, ASP, ASP.NET, VB,
VB.NET, VBScript, PHP, Python
Prakash
+1  A: 

It's not ideal (especially for HTML), but Word2007 has a SaveAsPDF plug in available which can be accessed programatically.

Unsliced