public class

Highlight

extends TextMarkup
java.lang.Object
   ↳ com.pdftron.pdf.Annot
     ↳ com.pdftron.pdf.annots.Markup
       ↳ com.pdftron.pdf.annots.TextMarkup
         ↳ com.pdftron.pdf.annots.Highlight

Class Overview

Text markup annotations shall appear as highlights, underlines, strikeouts (all PDF 1.3), or jagged ("squiggly") underlines (PDF 1.4) in the text of a document. When opened, they shall display a pop-up window containing the text of the associated note.

Summary

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

Public Constructors

public Highlight (Obj d)

Creates a Highlight 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 Highlight ()

Creates an empty Highlight annotation.

public Highlight (Annot annot)

Creates a Highlight 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 annot

Public Methods

public static Highlight create (Doc doc, Rect pos)

Creates a new Highlight 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 Highlight annotation.