public class UnderlineAnnotation extends TextMarkupAnnotation
| Constructor and Description |
|---|
UnderlineAnnotation(Page page,
int addAfter,
java.util.List<Quad> quadList)
Create a new UnderlineAnnotation at a specific index in the page's annotation array.
|
UnderlineAnnotation(Page page,
java.util.List<Quad> quadList)
Create a new UnderlineAnnotation at the end of a page's annotation array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
Form |
generateAppearance()
Generate a new appearance stream with the current annotation properties.
|
getAnnotatedText, getAnnotationFeatureLevel, getQuads, setAnnotationFeatureLevel, setQuadsequals, getColor, getContents, getFlags, getInteriorColor, getNormalAppearance, getOpacity, getOptionalContentMembershipDict, getPDFDict, getRect, getSubtype, getTitle, hasRichTextData, isCurrentlyVisible, setColor, setContents, setFlags, setInteriorColor, setNormalAppearance, setOpacity, setOptionalContentMembershipDict, setRect, setTitle, toStringpublic UnderlineAnnotation(Page page, java.util.List<Quad> quadList)
page - The page to which the UnderlineAnnotation is added.quadList - A list of quads to underline. Each quad encompasses a word or group of contiguous words in the text underlying the annotation.public UnderlineAnnotation(Page page, int addAfter, java.util.List<Quad> quadList)
page - The page to which the UnderlineAnnotation is added.quadList - A list of quads to underline. Each quad encompasses a word or group of contiguous words in the text underlying the annotation.addAfter - Where to add the annotation in the page's annotation array. To add the annotation to the end of the array, pass a value of -2 or use the alternate version of this constructor that does not take an index (this is generally what you should do unless you have a need to place the annotation at a special location in the array). Passing a value of -1 adds the annotation to the beginning of the array. Passing other negative values produces undefined results.public void delete()
delete in class TextMarkupAnnotationpublic Form generateAppearance()
The resulting Form can then be used to set the annotation's appearance, such as by calling SetNormalAppearance.
generateAppearance in class Annotation