Giorgio Arcangeli wrote:
Hi Bruno,I've a question.
Please post questions to the mailing list.
Please don't expect from me that I can
answer every question about iText individually.
I've a blank PDF with logos. I would like use this PDF as stationery.
That is I want write on this PDF and when the page end re-use then
original PDF for then new page.
How can make this ?
I have already answered this on the mailing list:
http://thread.gmane.org/gmane.comp.java.lib.itext.general/21595
This is a copy/paste of my answer:
Normally, I refer to the iText tutorial,
http://itextdocs.lowagie.com/tutorial/general/copystamp/
but you can also find examples elsewhere, for instance:
http://www.pdfhacks.com/watermark/
The example made by Sid does exactly what you describe.
I want to add this:
I have written some applications that create one large PDF
with thousands of letters that are sent to a printing office
(where they are also put into enveloppes automatically).
All these letters have the same background with the company
logo. To reduce the file size of this large PDF, I read the
background PDF into a PdfTemplate/PdfImportedPage
in an onOpenDocument event and I add this template in
an onEndPage (or sometimes in an onStartPage) event.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions