public class

Underline

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

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
Underline(Obj d)
Creates a Underline annotation and initialize it using given Cos/SDF object.
Underline()
Creates an empty Underline annotaiton.
Underline(Annot annot)
Creates a Underline annotation and initialize it using given annotation object.
Public Methods
static Underline create(Doc doc, Rect pos)
Creates a new Underline 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 Underline (Obj d)

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

Creates an empty Underline annotaiton.

public Underline (Annot annot)

Creates a Underline 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 annotation object

Public Methods

public static Underline create (Doc doc, Rect pos)

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