Fred Janon wrote:
> Not sure how you are related to iText or Bruno either. Is the next 
> answer from you as well?

Different persons have access to the 1T3XT @ 1t3xt.info address,
but yesterday, both answers came from Bruno.

The first one because there's a perfectly good, working example online 
that you should try before saying "it doesn't work".

The second one because it's always tempting to look at a problem. And 
disappointing when somebody "didn't get it" and "blames the book" for it.

You're creating a PdfTemplate that "BELONGS" to the PdfWriter of a 
Document [1]. Then you try using this PdfTemplate for a PdfWriter of a 
PdfStamper [2] that has no relation whatsoever with the Document [1].

If you want to create a PdfTemplate, you need to create it for the 
correct writer. In your case stamper.getWriter();
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to