pdftron.PDF.Annots
Class Watermark

java.lang.Object
  extended by pdftron.PDF.Annot
      extended by pdftron.PDF.Annots.Watermark

public class Watermark
extends Annot

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.


Nested Class Summary
 
Nested classes/interfaces inherited from class pdftron.PDF.Annot
Annot.BorderStyle
 
Field Summary
 
Fields inherited from class pdftron.PDF.Annot
e_3D, e_Caret, e_Circle, e_down, e_FileAttachment, e_FreeText, e_hidden, e_Highlight, e_Ink, e_invisible, e_Line, e_Link, e_locked, e_locked_contents, e_Movie, e_no_rotate, e_no_view, e_no_zoom, e_normal, e_Polygon, e_Polyline, e_Popup, e_print, e_PrinterMark, e_Projection, e_read_only, e_Redact, e_RichMedia, e_rollover, e_Screen, e_Sound, e_Square, e_Squiggly, e_Stamp, e_StrikeOut, e_Text, e_toggle_no_view, e_TrapNet, e_Underline, e_Unknown, e_Watermark, e_Widget
 
Constructor Summary
Watermark()
          Creates an empty Watermark annotation.
Watermark(Annot annot)
          Creates a Watermark annotation and initialize it using given annotation object.
Watermark(Obj d)
          Creates a Watermark annotation and initialize it using given Cos/SDF object.
 
Method Summary
static Watermark create(Doc doc, Rect pos)
          Creates a new Watermark annotation, in the specified document.
 
Methods inherited from class pdftron.PDF.Annot
__Create, __GetHandle, __GetRefHandle, create, equals, flatten, getActiveAppearanceState, getAppearance, getAppearance, getAppearance, getBorderStyle, getColorAsCMYK, getColorAsGray, getColorAsRGB, getColorCompNum, getContents, getDate, getFlag, getOptionalContent, getPage, getRect, getSDFObj, GetStructParent, getType, getUniqueID, isMarkup, isValid, refreshAppearance, removeAppearance, resize, setActiveAppearanceState, setAppearance, setAppearance, setAppearance, setBorderStyle, setColor, setContents, setDate, setFlag, setOptionalContent, setPage, setRect, setStructParent, setUniqueID
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Watermark

public Watermark(Obj d)
Creates a Watermark annotation and initialize it using given Cos/SDF object.

Parameters:
d - the input Cos/SDF object
Note:
The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Watermark

public Watermark()
Creates an empty Watermark annotation.


Watermark

public Watermark(Annot annot)
          throws PDFNetException
Creates a Watermark annotation and initialize it using given annotation object.

Parameters:
annot - the input annoation object
Throws:
PDFNetException
Note:
The constructor does not copy any data, but is instead the logical equivalent of a type cast.
Method Detail

create

public static Watermark create(Doc doc,
                               Rect pos)
                        throws PDFNetException
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.
Throws:
PDFNetException


© 2002-2011 PDFTron Systems Inc.