ok, looks like ill have to read the document into a new pdf and add the layer
onto the specific pages
during that process right? Will try out that approach. Do let me know if that
might be wrong.
Thanks
From: 1T3XT BVBA <[email protected]>
To: Sailesh K <[email protected]>; Post all your questions about iText here
<[email protected]>
Sent: Monday, September 26, 2011 10:08 AM
Subject: Re: [iText-questions] hiding page contents by adding an OCG to specifc
pages
On 26/09/2011 15:55, Sailesh K wrote:
Hi,
>
>Ive been trying to add an OCG over speicific page(s) whose contents I want to
>hide
>by adding a blue rectangle layer over it. For some reason, the code seems to
>end up
>with an unopenable pdf. any pointers?
>
You're using syntax to add a PdfLayer to a PDF created from scratch.
If you want to add a PdfLayer to an existing PDF, you need a different approach.
I've searched my hard drive for an example, but I couldn't find one,
and I don't have the time to make you an example right now.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php