Creating PDF files using C#

12 02 2010

Being able to create PDF files from C# code is something I find incredibly useful. It’s taken me a while to find a good (free!) tool, but I’ve definitely found it. It’s a tool called MigraDoc which also comes with the renderer PDFSharp. They’re both fantastic open source .NET libraries.

The commands and way it works take a little getting used to but it’s all pretty straight forward. They have a Wiki that has loads of code examples which provides great knowledge to learn how to use the tool, but is also great if you get a bit stuck on something. If you can’t find an answer on the Wiki there’s also a forum. There’s lots of answered questions on there which has provided most of my answers to problems and the one time I couldn’t find an answer and posted, I had a reply from one of the developers within the hour.

So enough of the babbling, here’s a link to the site. Go forth and create PDF’s!

http://www.pdfsharp.net/MainPage.ashx

I may even post some code snippets using MigraDoc sometime in the near future.

Advertisements