pepgrifell wrote:
> In iText examples, I have found a class called OptionalContentExample were
> it defined a PDFLayer that can be seen when viewing the PDf but not when
> printing it :
> 
>         PdfLayer not_printed = new PdfLayer("not printed", writer);
>         not_printed.setOnPanel(false);
>         not_printed.setPrint("Print", false);
>         cb.beginLayer(not_printed);
>         ColumnText.showTextAligned(cb, Element.ALIGN_CENTER, new Phrase(
>                 "PRINT THIS PAGE"), 300, 700, 90);
>         cb.endLayer();
> 
> Do I need to use something similar to hide all the background ?

Yes, you need something similar.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
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