Re: [iText-questions] Watermark a PDF and check if an existing PDF is marked

2010-06-22 Thread Jaakov Jalink
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

Re: [iText-questions] Watermark a PDF and check if an existing PDF is marked

2010-06-21 Thread Jaakov Jalink
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

Re: [iText-questions] Watermark a PDF and check if an existing PDF is marked

2010-06-20 Thread 1T3XT info
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

[iText-questions] Watermark a PDF and check if an existing PDF is marked

2010-06-20 Thread jjalink
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