Hi! If the code sample below is used for setting the background of a new PDF, it will end up only in the first page. What is the way to add it on every page?

Harri

   PdfWriter writer = PdfWriter.getInstance(document, out);
   document.open();
   Image background = Image.getInstance(writer.getImportedPage(new 
PdfReader("bg.pdf"), 1));
   background.setAbsolutePosition(0.0f, 0.0f);
   document.add(background);
   ...
   document.add(...); // Add content so many times
   document.add(...); // that the resulting PDF has
   document.add(...); // more than one page.
   ...
   document.close();
------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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