public class PdfWidgetAnnotation extends PdfAnnotation
Modifier and Type | Field and Description |
---|---|
static int |
HIDDEN |
static int |
HIDDEN_BUT_PRINTABLE |
static int |
VISIBLE |
static int |
VISIBLE_BUT_DOES_NOT_PRINT |
Accepted, Canceled, Completed, HIGHLIGHT_INVERT, HIGHLIGHT_NONE, HIGHLIGHT_OUTLINE, HIGHLIGHT_PUSH, HIGHLIGHT_TOGGLE, INVISIBLE, LOCKED, LOCKED_CONTENTS, Marked, MarkedModel, NO_ROTATE, NO_VIEW, NO_ZOOM, None, page, PRINT, READ_ONLY, Rejected, ReviewModel, STYLE_BEVELED, STYLE_DASHED, STYLE_INSET, STYLE_SOLID, STYLE_UNDERLINE, TOGGLE_NO_VIEW, Unmarked
Constructor and Description |
---|
PdfWidgetAnnotation(PdfDictionary pdfObject) |
PdfWidgetAnnotation(Rectangle rect) |
Modifier and Type | Method and Description |
---|---|
PdfName |
getHighlightMode()
Getter for the annotation's highlighting mode.
|
PdfName |
getSubtype()
Gets a PdfName which value is a subtype of this annotation.
|
void |
releaseFormFieldFromWidgetAnnotation()
This method removes all widget annotation entries from the form field the given annotation merged with.
|
PdfWidgetAnnotation |
setHighlightMode(PdfName mode)
Setter for the annotation's highlighting mode.
|
PdfWidgetAnnotation |
setParent(PdfObject parent) |
PdfWidgetAnnotation |
setVisibility(int visibility)
Set the visibility flags of the Widget annotation Options are: HIDDEN, HIDDEN_BUT_PRINTABLE, VISIBLE, VISIBLE_BUT_DOES_NOT_PRINT
|
flush, getAction, getAdditionalAction, getAppearanceCharacteristics, getAppearanceDictionary, getAppearanceObject, getAppearanceState, getBorder, getBorderStyle, getColorObject, getContents, getDate, getDownAppearanceObject, getFlags, getName, getNormalAppearanceObject, getOpen, getPage, getPageObject, getQuadPoints, getRectangle, getRolloverAppearanceObject, getStructParentIndex, getTitle, hasFlag, isWrappedObjectMustBeIndirect, makeAnnotation, makeAnnotation, put, remove, resetFlag, setAction, setAdditionalAction, setAppearance, setAppearance, setAppearanceCharacteristics, setAppearanceState, setBorder, setBorderStyle, setBorderStyle, setColor, setColor, setColor, setContents, setContents, setDashPattern, setDate, setDownAppearance, setDownAppearance, setFlag, setFlags, setLayer, setName, setNormalAppearance, setNormalAppearance, setOpen, setPage, setQuadPoints, setRectangle, setRolloverAppearance, setRolloverAppearance, setStructParentIndex, setTitle
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public static final int HIDDEN
public static final int VISIBLE_BUT_DOES_NOT_PRINT
public static final int HIDDEN_BUT_PRINTABLE
public static final int VISIBLE
public PdfWidgetAnnotation(Rectangle rect)
public PdfWidgetAnnotation(PdfDictionary pdfObject)
public PdfName getSubtype()
PdfAnnotation
PdfName
which value is a subtype of this annotation. See ISO-320001 12.5.6, “Annotation Types” for the reference to the possible types.
getSubtype
in class PdfAnnotation
public PdfWidgetAnnotation setParent(PdfObject parent)
public PdfWidgetAnnotation setHighlightMode(PdfName mode)
PdfAnnotation.HIGHLIGHT_NONE
- No highlighting.PdfAnnotation.HIGHLIGHT_INVERT
- Invert the contents of the annotation rectangle.PdfAnnotation.HIGHLIGHT_OUTLINE
- Invert the annotation's border.PdfAnnotation.HIGHLIGHT_PUSH
- Display the annotation?s down appearance, if any.PdfAnnotation.HIGHLIGHT_TOGGLE
- Same as P.mode
- The new value for the annotation's highlighting mode.
public PdfName getHighlightMode()
public void releaseFormFieldFromWidgetAnnotation()
public PdfWidgetAnnotation setVisibility(int visibility)
visibility
- visibility option
Copyright © 1998–2017 iText Group NV. All rights reserved.