views:

100

answers:

3

I have some xml files which are used to generate my webpages, however I need to be able to allow the user to select a number of pages then combine them into one PDF. This pdf needs to have different styling to the actual web page.(the content is kept in xml files ;)

p.s. the pdf must have table of contents... and will include images taken from the website.

+3  A: 

You would use a library like iText or iTextSharp to build a PDF using your content.

Robert Harvey
is iText a free product?
MMAMail.com
+2  A: 

Write an XSLT stylesheet which transforms your XML files to XSL-FO and then use an XSL-FO implementation (e.g. Apache FOP) to produce PDF.

Ilya Boyandin
do you know any good references for this because all the sources I found where out of date and not comprehensive
MMAMail.com
+1  A: 

I use Prince in my product. It's not cheap (neither is my product), but it's extremely easy to use, and very fast.

Robert Rossney