First of all, I'm not 100% sure if this is the correct forum ("current" releases) as the version I have is 7.0 (build 323.0). Apologies if this is the incorrect forum.
I'm looking in to covering a document with a watermark (or optionally a layer with an image), and hide/show the watermark/layer via JavaScript.
I did some research and found that I can use getOCGs() to find a specific layer, or even the Watermark layer.
I added an image as a Watermark, but when I invoke getOCGs it returns null (no layers). In fact, the layers pane shows no layers.
I realize that although I can open a PDF with layers in version 7, there isn't an option to add a new layer.
Questions:
- Are Watermarks not layers (or OCGs)? Or can one handle Watermarks via JavaScript as one can with layers?
- Am I correct that "New layer" is not available in version 7?
Thanks in advance