public class

Watermark

extends Annot
java.lang.Object
   ↳ com.pdftron.pdf.Annot
     ↳ com.pdftron.pdf.annots.Watermark

Class Overview

A watermark annotation (PDF 1.6) shall be used to represent graphics that shall be printed at a fixed size and position on a page, regardless of the dimensions of the printed page. The FixedPrint entry of a watermark annotation dictionary shall be a dictionary that contains values for specifying the size and position of the annotation.

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.Annot
Public Constructors
Watermark(Obj d)
Creates a Watermark annotation and initialize it using given Cos/SDF object.
Watermark()
Creates an empty Watermark annotation.
Watermark(Annot annot)
Creates a Watermark annotation and initialize it using given annotation object.
Public Methods
static Watermark create(Doc doc, Rect pos)
Creates a new Watermark annotation, in the specified document.
[Expand]
Inherited Methods
From class com.pdftron.pdf.Annot
From class java.lang.Object

Public Constructors

public Watermark (Obj d)

Creates a Watermark annotation and initialize it using given Cos/SDF object.

Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Parameters
d the input Cos/SDF object

public Watermark ()

Creates an empty Watermark annotation.

public Watermark (Annot annot)

Creates a Watermark annotation and initialize it using given annotation object.

Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Parameters
annot the input annoation object

Public Methods

public static Watermark create (Doc doc, Rect pos)

Creates a new Watermark annotation, in the specified document.

Parameters
doc A document to which the Popup annotation is added.
pos A rectangle specifying the Popup annotation's bounds, specified in user space coordinates.
Returns
  • A newly created blank Watermark annotation.