public class

Caret

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

Class Overview

A Caret annotation (PDF 1.5) is a visual symbol that indicates the presence of text edits.

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.annots.Markup
From class com.pdftron.pdf.Annot
Public Constructors
Caret(Obj d)
Creates an Caret annotation and initialize it using given Cos/SDF object.
Caret()
Creates an empty Caret annotation.
Caret(Annot annot)
Creates an Caret annotation and initialize it using given annotation object.
Public Methods
static Caret create(Doc doc, Rect pos)
Creates a new Caret annotation, in the specified document.
String getSymbol()
Get the paragraph symbol displayed along with the Caret.
void setSymbol(String contt)
Set the paragraph symbol displayed along with the Caret.
[Expand]
Inherited Methods
From class com.pdftron.pdf.annots.Markup
From class com.pdftron.pdf.Annot
From class java.lang.Object

Public Constructors

public Caret (Obj d)

Creates an Caret 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 Cos/SDF object

public Caret ()

Creates an empty Caret annotation.

public Caret (Annot annot)

Creates an Caret 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 input annotation object

Public Methods

public static Caret create (Doc doc, Rect pos)

Creates a new Caret annotation, in the specified document.

Parameters
doc A document to which the Caret annotation is added.
pos A rectangle specifying the Caret annotation's bounds, specified in user space coordinates.
Returns
  • A newly created blank Caret annotation.

public String getSymbol ()

Get the paragraph symbol displayed along with the Caret.

Note: the content of the Caret Annotation is a name specifying a symbol that shall be associated with the Caret: P - A new paragraph symbol should be associated with the Caret. None - No symbol should be associated with the Caret. Default value: None.

Returns
  • A pointer to an array of charactors that specifies the Caret content.

public void setSymbol (String contt)

Set the paragraph symbol displayed along with the Caret. (Optional)

Note: the content of the Caret Annotation is a name specifying a symbol that shall be associated with the Caret: P - A new paragraph symbol should be associated with the Caret.

Parameters
contt A pointer to an array of charactors that specifies the Caret content. specifies the Caret content.
Throws
PDFNetException None - No symbol should be associated with the Caret. Default value: None.