Thanks for the response. Here's what I'm actually trying to do... On my server-based application, I have a PDF file with a background image and content drawn on top. I want to be able to produce a version of this document where the image doesn't print. (The image will already be on the paper). It doesn't actually matter if the image appears on screen in this case.
I can think of a few approaches to do this: 1. Use itext to open the PDF, somehow identify and delete the image, and create a new file 2. Use the background feature of Acrobat 8, and have itext somehow set the 'background printing' to off. 3. Use itext to manipulate the layers of file using Optional Content Groups Which approach would you suggest? Any pointers would be very appreciated. Carl Bruno Lowagie (iText) wrote: > Carl H. Sayres wrote: >> Is it possible to turn on/off the printing of background images. ie. >> In Acrobat 8, I can set a background image using the >> Document>background>Add/Replace dialog, and then click on Appearance >> Options and select or de-select "show when printing". What I am >> looking for is a way to programmatically check or uncheck "show when >> printing" with itext. > > I think you are looking for Optional Content Groups: > http://itextdocs.lowagie.com/tutorial/directcontent/optionalcontent/ > br, > Bruno > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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/
