Kmet, Bill wrote:
Just to make sure I am working on a valid concept, the parameters being being used in main can be somehow passed to the interface?
You would have something like this: MyEvent event = new MyEvent(); event.setParameter1(parameter1); writer.setPageEvent(event); I also noticed your mail about the filesize. If you add an Image, make sure you create it only once: for instance; onOpenDocument(PdfWriter writer, Document document) { myImage = Image.getInstance("myLogo.gif"); myImage.setAbsolutePosition(x, y); } onEndPage(PdfWriter writer, Document document) { writer.getDirectContent().addImage(myImage); } If you combine the three lines in the onEndPage method, the image data is added as many times as there are pages. If you construct the image in onOpenDocument, the image data will be added only once. br, Bruno ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions