Kristof Heiremans wrote: > and because this is my first time using iText i've probably made some > mistakes/bad choices/etc... so if you see any errors plz tell me.
I've just looked at the rest of your code. It is very similar to what I wrote for Universiteit Gent (ook in het Nederlands). In my project I needed to create personalized letters for students saying they didn't pay enough or paid too much for their tutorial fees. The letter consisted of a number of clauses. I see you are creating personalized letters too, only you have all the clauses hardcoded in your Java code. Wouldn't it be better to put all the text in an XML file and parse this XML file? In my application the clauses are numbered and the database gives me the numbers of the clauses that apply for each student. While parsing the XML only those clauses are added to the PDF (the other clauses are ignored). The content of these clauses can vary from academic year to academic year. In 2006 we have to send letters to students who were enrolled in the academic year 2006-2007, but also to students who still haven't paid for 2005-2006. By reading the clauses. Somebody who doesn't know how to program in Java makes a new copy of the easy to handle XML file each year, and he changes the clauses according to the new rules. I'd suggest that you do something similar to avoid having to change the Java program every time the customer asks you for a change of the PDF content. just my 2 cents, 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/
