On 6/06/2011 14:43, olexiy wrote:
> My task at the moment is to write a class that can do the following things:
> 1. Add to an already existing pdf Fail watermark "outdated"
> 2. Check, whether the document already has this sign

Are you sure the sign is added as an OCG layer?
In that case, you can use the method getPdfLayers.

> 3. Remove the sign

That's not trivial, but: if you are sure the sign was added with PdfStamper
(and NOT with other PDF software), then you could get the /Contents
of the page (which will be an array if it was created with PdfStamper)
and remove/replace the first entry in that array.

> The first two points have been resolved through iText Stamper and layers.
> Saly i can't  find an example of how to remove the specific layer.

You can't find an example, because this is a very specific question.
Specific questions like this are often answered:
- in the context of a support contract for those who bought a license,
- in the context of a paid consultancy assignment.

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
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

Reply via email to