tags:

views:

3513

answers:

11

Is there a pdf library attached/that can be attached to .NET 3.5 that allows creation of pdf files at runtime i.e opening a new pdf file, writing to it line by line, embedding images, etc and closing the pdf file all in C# code?

What I want is a set of tools and specifications which allow me to implement a customised pdf writer in C# without using Reporting Services' pdf output option.

A: 

http://csharp-source.net/open-source/pdf-libraries

RandomNoob
Its humorous that iTextSharp is the first link on the above link.
RandomNoob
+14  A: 

iTextSharp http://itextsharp.sourceforge.net/

Complex but comprehensive.

amdfan
Wow, I posted and within 60 seconds there are three other recommendations for the same thing! I guess it is popular.
amdfan
Very popular - a little tedious to work with IMO, but you can get some nice results. And it's free.
Knobloch
Wrap away the tediousness! The biggest problem for my brain was 0,0 being the left BOTTOM of a page, and not the top.
svinto
hahaha!!!!!!!!!
Ismail
A: 

I have used (iTextSharp) in the past with nice results.

Knobloch
+1  A: 

I strongly recommend: iTextSharp

Przemek
This is a duplicate suggestions
epotter
+1  A: 

How about iTextSharp?

iText is a PDF (among others) generation library that is also ported (and kept in sync) to C#.

Francisco Canedo
A: 

Try PDFBox

trendl
+2  A: 

Well, free and not-for-free, I use WebSuperGoo ABCpdf .NET component, that I just love it!

not-for-free because you need to pay for it.

for free because even if you have to pay, they have a trial version and you can request a free license if you do not mind that, in your site show "This site uses WebSuperGoo ABCpdf .NET component" with a link to their website.

I did that and I got a free license (version 5 in that time) so, I can say that it works (even if the website is no longer online) - I still have and use the component ~:)

A wonderful thing that I love with this is that you can do everything that you can thing off with this, create PDF forms and dynamically fill them and send to user by mail or have them to download it, create a pdf from scratch, convert HTML pages into PDF, etc etc etc, please read the documentation, it is a wonderful component.

balexandre
+5  A: 

Hi,

Have a look at http://pdfsharp.com/PDFsharp/

It is open source and it is written in .NET, I use it myself for some PDF invoice generation.

Taner Gedikoğlu
+1  A: 

I have posted a sample of how to use iTextSharp in one of my blogs:

http://devpinoy.org/blogs/marl/archive/2008/02/14/create-pdf-in-c-2008-a-pdf-sample-app-for-grade-1-pupils.aspx

MarlonRibunal
A: 

For this i looked into running LaTeX apps to generate a pdf. Although this option is likely to be far more complicated and heavy duty than the ones listed here.

simonjpascoe
A: 

I have used Gnostice in the past and found them to be very good.

http://www.gnostice.com/PDFOne_dot_Net.asp

Khadaji