Diego Guidi wrote: >> The question is pertinent. If you need something like you have in html you >> must start with >> html or xml, do all the template replacements and produce the pdf from >> there. You may use >> XmlParser or HTMLWorker. > > Thanks a lot for the super-fast response, and for suggest! > Maybe i could simply try to convert to PDF the HTML reports that i > generate at hand :)
I am generating invoices for students the same way. Student can enroll at Ghent University in different ways: - full time / half time / part time / separate courses / ... - graduate / undergraduate / PHD / ... - local student / foreign student / ... - with a study grant / without a grant - first time subscribers / ... I have made one large XML with all the possible clauses; then I read records from the student database to see which clauses apply for every student (sometimes combinations are necessary). There are different placeholders in these clauses that are replaced with the name of the student, the amount that has to be paid, the date we expect them to pay, and so forth. I use iText to create the PDF based on the XML and the database info more or less as described in the examples of chapter 14 of the book "iText in Action". best regards, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
