Jörg Winter wrote: > Hi, > > We need to _delete_ (physically remove) a PdfLayer in an existing PDF. > Is this possible somehow ?
It depends on your definition of PdfLayer. In iText a PdfLayer refers to OCG. If you want to remove it, you'll have to retrieve the content stream; identify the syntax that is part of an Optional Content Group; remove that syntax from the stream, and put the altered stream back in the PDF. It's no rocket science, but it's some programming work. (We currently don't have any examples that show you how to do it; there's only an example that explains how to change a stream: http://1t3xt.be/?X0000b6 ) But we also use the concept of layers when we talk about different "canvases". Please clarify if the above answer about OCG was a wrong interpretation of the question. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ iText-questions mailing list [email protected] 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/
