public abstract class PdfAnnotation extends PdfObjectWrapper<PdfDictionary>
Modifier and Type | Field and Description |
---|---|
static PdfString |
Accepted |
static PdfString |
Canceled |
static PdfString |
Completed |
static int |
HIDDEN |
static PdfName |
HIGHLIGHT_INVERT |
static PdfName |
HIGHLIGHT_NONE
Annotation highlighting modes.
|
static PdfName |
HIGHLIGHT_OUTLINE |
static PdfName |
HIGHLIGHT_PUSH |
static PdfName |
HIGHLIGHT_TOGGLE |
static int |
INVISIBLE
Annotation flags.
|
static int |
LOCKED |
static int |
LOCKED_CONTENTS |
static PdfString |
Marked
Annotation states.
|
static PdfString |
MarkedModel
Annotation state models.
|
static int |
NO_ROTATE |
static int |
NO_VIEW |
static int |
NO_ZOOM |
static PdfString |
None |
protected PdfPage |
page |
static int |
PRINT |
static int |
READ_ONLY |
static PdfString |
Rejected |
static PdfString |
ReviewModel |
static PdfName |
STYLE_BEVELED |
static PdfName |
STYLE_DASHED |
static PdfName |
STYLE_INSET |
static PdfName |
STYLE_SOLID
Annotation highlighting modes.
|
static PdfName |
STYLE_UNDERLINE |
static int |
TOGGLE_NO_VIEW |
static PdfString |
Unmarked |
Modifier | Constructor and Description |
---|---|
protected |
PdfAnnotation(PdfDictionary pdfObject) |
protected |
PdfAnnotation(Rectangle rect) |
ensureObjectIsAddedToDocument, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public static final int INVISIBLE
public static final int HIDDEN
public static final int PRINT
public static final int NO_ZOOM
public static final int NO_ROTATE
public static final int NO_VIEW
public static final int READ_ONLY
public static final int LOCKED
public static final int TOGGLE_NO_VIEW
public static final int LOCKED_CONTENTS
public static final PdfName HIGHLIGHT_NONE
public static final PdfName HIGHLIGHT_INVERT
public static final PdfName HIGHLIGHT_OUTLINE
public static final PdfName HIGHLIGHT_PUSH
public static final PdfName HIGHLIGHT_TOGGLE
public static final PdfName STYLE_SOLID
public static final PdfName STYLE_DASHED
public static final PdfName STYLE_BEVELED
public static final PdfName STYLE_INSET
public static final PdfName STYLE_UNDERLINE
public static final PdfString Marked
public static final PdfString Unmarked
public static final PdfString Accepted
public static final PdfString Rejected
public static final PdfString Canceled
public static final PdfString Completed
public static final PdfString None
public static final PdfString MarkedModel
public static final PdfString ReviewModel
protected PdfPage page
protected PdfAnnotation(Rectangle rect)
protected PdfAnnotation(PdfDictionary pdfObject)
public static PdfAnnotation makeAnnotation(PdfObject pdfObject, PdfAnnotation parent)
public abstract PdfName getSubtype()
public void setLayer(IPdfOCG layer)
layer
- the layer this annotation belongs to
public PdfAnnotation setAction(PdfAction action)
public PdfAnnotation setAdditionalAction(PdfName key, PdfAction action)
public PdfString getContents()
public PdfAnnotation setContents(PdfString contents)
public PdfAnnotation setContents(String contents)
public PdfDictionary getPageObject()
public PdfPage getPage()
public PdfAnnotation setPage(PdfPage page)
public PdfString getName()
public PdfAnnotation setName(PdfString name)
public PdfString getDate()
public PdfAnnotation setDate(PdfString date)
public int getFlags()
public PdfAnnotation setFlags(int flags)
public PdfAnnotation setFlag(int flag)
public PdfAnnotation resetFlag(int flag)
public boolean hasFlag(int flag)
public PdfDictionary getAppearanceDictionary()
public PdfDictionary getAppearanceObject(PdfName appearanceType)
public PdfDictionary getNormalAppearanceObject()
public PdfDictionary getRolloverAppearanceObject()
public PdfDictionary getDownAppearanceObject()
public PdfAnnotation setAppearance(PdfName appearanceType, PdfDictionary appearance)
public PdfAnnotation setNormalAppearance(PdfDictionary appearance)
public PdfAnnotation setRolloverAppearance(PdfDictionary appearance)
public PdfAnnotation setDownAppearance(PdfDictionary appearance)
public PdfAnnotation setAppearance(PdfName appearanceType, PdfAnnotationAppearance appearance)
public PdfAnnotation setNormalAppearance(PdfAnnotationAppearance appearance)
public PdfAnnotation setRolloverAppearance(PdfAnnotationAppearance appearance)
public PdfAnnotation setDownAppearance(PdfAnnotationAppearance appearance)
public PdfName getAppearanceState()
public PdfAnnotation setAppearanceState(PdfName as)
public PdfArray getBorder()
public PdfAnnotation setBorder(PdfArray border)
public PdfArray getColorObject()
public PdfAnnotation setColor(PdfArray color)
public PdfAnnotation setColor(float[] color)
public PdfAnnotation setColor(Color color)
public int getStructParentIndex()
public PdfAnnotation setStructParentIndex(int structParentIndex)
public PdfArray getQuadPoints()
public boolean getOpen()
public PdfAnnotation setOpen(boolean open)
public PdfAnnotation setQuadPoints(PdfArray quadPoints)
public PdfAnnotation setBorderStyle(PdfDictionary borderStyle)
public PdfAnnotation setBorderStyle(PdfName style)
STYLE_SOLID
- A solid rectangle surrounding the annotation.STYLE_DASHED
- A dashed rectangle surrounding the annotation.STYLE_BEVELED
- A simulated embossed rectangle that appears to be raised above the surface of the page.STYLE_INSET
- A simulated engraved rectangle that appears to be recessed below the surface of the page.STYLE_UNDERLINE
- A single line along the bottom of the annotation rectangle.style
- The new value for the annotation's border style.
public PdfAnnotation setDashPattern(PdfArray dashPattern)
public PdfDictionary getBorderStyle()
public static PdfAnnotation makeAnnotation(PdfObject pdfObject)
public PdfAnnotation setTitle(PdfString title)
public PdfString getTitle()
public PdfAnnotation setAppearanceCharacteristics(PdfDictionary characteristics)
public PdfDictionary getAppearanceCharacteristics()
public PdfDictionary getAction()
public PdfDictionary getAdditionalAction()
public PdfAnnotation setRectangle(PdfArray array)
public PdfArray getRectangle()
public PdfAnnotation put(PdfName key, PdfObject value)
public PdfAnnotation remove(PdfName key)
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2016 iText Group NV. All rights reserved.