pdftron::PDF::Annots::Watermark Class Reference

A Watermark annotation is an annotation that is printed at a fixed size and position on a page, regardless of the dimensions of the printed page. More...

#include <Watermark.h>

Inheritance diagram for pdftron::PDF::Annots::Watermark:

Inheritance graph
[legend]
Collaboration diagram for pdftron::PDF::Annots::Watermark:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Watermark (SDF::Obj d=0)
 Creates a Watermark annotation and initializes it using given Cos/SDF object.
 Watermark (const Annot &ann)
 Creates a Watermark annotation and initializes it using given annotation object.

Static Public Member Functions

static Watermark Create (SDF::SDFDoc &doc, const Rect &pos)
 Creates a new Watermark annotation in the specified document.


Detailed Description

A Watermark annotation is an annotation that is printed at a fixed size and position on a page, regardless of the dimensions of the printed page.

Constructor & Destructor Documentation

pdftron::PDF::Annots::Watermark::Watermark ( SDF::Obj  d = 0  ) 

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

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

pdftron::PDF::Annots::Watermark::Watermark ( const Annot ann  )  [inline]

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

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


Member Function Documentation

static Watermark pdftron::PDF::Annots::Watermark::Create ( SDF::SDFDoc doc,
const Rect pos 
) [static]

Creates a new Watermark annotation in the specified document.

Parameters:
doc A document to which the annotation is added.
pos A rectangle specifying the annotation's bounds in default user space units.
Returns:
A newly created blank Watermark annotation.


© 2002-2010 PDFTron Systems Inc.