My version of watermarking with iText
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Image;
import com.itextpdf.text.Rectangle;
import com.itextpdf.text.pdf.PdfContentByte;
import com.itextpdf.text.pdf.PdfGState;
import com.itextpdf.text.pdf.PdfLayer;
import com.itext
Hi,
Thanks for the script & reference to PDF standard.
Watermarks are indeed annotations - see page 410 at the bottom:
http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf
The code I got to so far is, but the use of stamper should be avoided:
import com.itextpdf.text.DocumentException;
impo
jjalink wrote:
> Hi,
> A little background:
The background is confusing, so I'll remove it.
> i found no way to list the OCGs names.
Map layers = stamper.getPdfLayers();
if (!layers.isEmpty()) {
Set keys = layers.keySet();
for (String key : keys) {
System.out.println("Layer na
Hi,
A little background:
I've worked with the adobe SDK in a .NET environment on watermarking a bunch
of PDFs, the watermarks added to the PDFs were not displayed in the layers
listing, and can be removed in acrobat writer menu (Document - Watermark -
Remove...).
Through that SDK I could also chec