Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple XMLs to PDF: best approach

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.

like image 263
anonymous Avatar asked Apr 12 '10 14:04

anonymous


2 Answers

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

like image 103
Robert Harvey Avatar answered Nov 14 '22 08:11

Robert Harvey


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.

like image 2
Ilya Boyandin Avatar answered Nov 14 '22 08:11

Ilya Boyandin