Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best Library for Dynamic PDF or Word Doc Generation? [closed]

Our ASP.NET application must be able to export web content to PDF and Word documents.

In the past, we've used Aspose's libraries to accomplish this, but we've found them to be a little too low-level in terms of document construction. e.g. We've found ourselves needing to write point-based functions using shape primitives to create bulleted lists.

Best case scenerio- we'd point a tool at our printable css-styled page and automagically get a PDF or Word document containing the same content styled in the same manner.

Have you had a good experience using any tools that could accomplish this?

like image 227
Kyle Chafin Avatar asked Sep 17 '08 19:09

Kyle Chafin


1 Answers

ITextSharp is a pretty easy PDF tool to use with .Net (it's a port of the iText java project). Free, open source and pretty high level so this is the code for bullet points:

List overview = new List(false, 10); //false =unordered, true= numbered
overview.Add(new ListItem("This is an item"));
overview.Add("This is another item");

Doesn't do Microsoft Word though.

like image 164
martin Avatar answered Sep 28 '22 09:09

martin