pdftron::PDF::Annots::Highlight Class Reference

A Highlight annotation covers a word or a group of contiguous words with partially transparent color. More...

#include <Highlight.h>

Inheritance diagram for pdftron::PDF::Annots::Highlight:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Static Public Member Functions

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


Detailed Description

A Highlight annotation covers a word or a group of contiguous words with partially transparent color.

Constructor & Destructor Documentation

pdftron::PDF::Annots::Highlight::Highlight ( SDF::Obj  d  ) 

Creates a Highlight 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::Highlight::Highlight ( const Annot ann  )  [inline]

Creates a Highlight 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 Highlight pdftron::PDF::Annots::Highlight::Create ( SDF::SDFDoc doc,
const Rect pos 
) [static]

Creates a new Highlight annotation in the specified document.

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


© 2002-2010 PDFTron Systems Inc.