| java.lang.Object | |||
| ↳ | com.pdftron.pdf.Annot | ||
| ↳ | com.pdftron.pdf.annots.Markup | ||
| ↳ | com.pdftron.pdf.annots.Caret | ||
A Caret annotation (PDF 1.5) is a visual symbol that indicates the presence of text edits.
|
[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
| |||||||||||
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.
| d | Cos/SDF object |
|---|
Creates an empty Caret annotation.
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.
| annot | input annotation object |
|---|
| PDFNetException |
|---|
Creates a new Caret annotation, in the specified document.
| doc | A document to which the Caret annotation is added. |
|---|---|
| pos | A rectangle specifying the Caret annotation's bounds, specified in user space coordinates. |
| PDFNetException |
|---|
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.
| PDFNetException |
|---|
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.
| contt | A pointer to an array of charactors that specifies the Caret content. specifies the Caret content. |
|---|
| PDFNetException | None - No symbol should be associated with the Caret. Default value: None. |
|---|