Peyman Pouryekta wrote: > I am using the spring framework and there is a class called > AbstractPdfView to create PDFs with iText. > there is one method to create a PDF. > > protected abstract void buildPdfDocument(
OK, I asked a colleague for his copy of "Spring in Action": http://www.manning.com/affiliate/idevaffiliate.php?id=223_15 On p341 (listing 9.8) I found an example of a buildPdfDocument implementation. The Document and PdfWriter object are passed to this method by Spring. On p342 I see that you can change the document by overriding the getDocument method. I don't think there's such a method to change the PdfWriter method (that probably wouldn't be a good idea). However, when I go on to p343, I see an example AbstractJpegView (listing 9.9) and CircleJpegView (listing 9.10) implementing this abstract class. These classes implement the View interface, more specifically the method render(model, request, response). It wouldn't be that difficult to write a class AbstractPdfStamperView that allows you to stamp an existing PDF file from the Spring Framework. Of course, I don't know exactly what you need. If you can get me in touch with the Spring guys, we could probably write some useful code together. 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/
