public abstract class Annotation extends BaseParagraph
Class representing annotation object.
Modifier and Type | Field and Description |
---|---|
boolean |
_disableUpdateAppearance |
Modifier and Type | Method and Description |
---|---|
abstract void |
accept(AnnotationSelector visitor)
Accepts visitor for annotation processing.
|
void |
flatten()
Places annotation contents directly on the page,
annotation object will be removed.
|
String |
getActiveState()
Gets current annotation appearance state.
|
int |
getAlignment()
Deprecated.
|
AppearanceDictionary |
getAppearance()
Gets appearance dictionary of the annotation.
|
Border |
getBorder()
Gets annotation border characteristics.
|
Characteristics |
getCharacteristics()
Gets annotation characteristics.
|
Color |
getColor()
Gets annotation color.
|
String |
getContents()
Gets or sets annotation text.
|
com.aspose.pdf.engine.data.IPdfDictionary |
getEngineDict()
Internal only
|
com.aspose.pdf.engine.data.IPdfObject |
getEngineObj() |
int |
getFlags()
Flags of the annotation.
|
String |
getFullName()
Gets full qualified name of the annotation.
|
double |
getHeight()
Gets or sets height of the annotation.
|
int |
getHorizontalAlignment_Annotation_New()
Gets or sets text alignmennt for annotation.
|
Date |
getModified() |
com.aspose.ms.System.DateTime |
getModifiedInternal()
Gets date and time when annotation was recently modified.
|
String |
getName()
Gets or sets annotation name on the page.
|
XForm |
getNormalAppearance()
Gets normal appearance.
|
Page |
getPage()
Gets the page object with which this annotation is associated.
|
int |
getPageIndex()
Gets index of page which contains annotation.
|
int |
getPageIndex(Annotation annotation) |
Rectangle |
getRect()
Gets or sets annotation rectangle.
|
AppearanceDictionary |
getStates()
Gets appearance dictionary of annotation.
|
static boolean |
getUseFontSubset()
If this property set to true, fonts will be added to document as subsets.
|
double |
getWidth()
Gets or sets width of the annotation.
|
void |
initialize(IDocument doc) |
void |
setActiveState(String value)
Sets current annotation appearance state.
|
void |
setAlignment(int value)
Deprecated.
|
void |
setBorder(Border value)
Sets annotation border characteristics.
|
void |
setColor_Rename_Namesake(Color value)
Sets annotation color.
|
void |
setColor(Color value)
Sets annotation color.
|
void |
setContents(String value) |
void |
setFlags(int value) |
void |
setHeight(double value) |
void |
setHorizontalAlignment_Annotation_New(int value) |
void |
setModified(Date value) |
void |
setModifiedInternal(com.aspose.ms.System.DateTime value)
Sets date and time when annotation was recently modified.
|
void |
setName(String value) |
void |
setRect(Rectangle value) |
static void |
setUseFontSubset(boolean value) |
void |
setWidth(double value) |
getHorizontalAlignment, getMargin, isInNewPage, isKeptWithNext, setHorizontalAlignment, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment
public void initialize(IDocument doc)
public com.aspose.pdf.engine.data.IPdfObject getEngineObj()
public com.aspose.pdf.engine.data.IPdfDictionary getEngineDict()
public static boolean getUseFontSubset()
If this property set to true, fonts will be added to document as subsets. Default value is true.
public static void setUseFontSubset(boolean value)
public XForm getNormalAppearance()
Gets normal appearance.
public int getFlags()
Flags of the annotation.
public void setFlags(int value)
public Page getPage()
Gets the page object with which this annotation is associated.
public double getWidth()
Gets or sets width of the annotation.
public void setWidth(double value)
public double getHeight()
Gets or sets height of the annotation.
public void setHeight(double value)
public Rectangle getRect()
Gets or sets annotation rectangle.
public void setRect(Rectangle value)
public String getContents()
Gets or sets annotation text.
public void setContents(String value)
public String getName()
Gets or sets annotation name on the page.
public void setName(String value)
public com.aspose.ms.System.DateTime getModifiedInternal()
Gets date and time when annotation was recently modified.
public Date getModified()
public void setModifiedInternal(com.aspose.ms.System.DateTime value)
Sets date and time when annotation was recently modified.
public void setModified(Date value)
public void setColor_Rename_Namesake(Color value)
Sets annotation color.
public Color getColor()
Gets annotation color.
public void setColor(Color value)
Sets annotation color.
public Border getBorder()
Gets annotation border characteristics. Border
public void setBorder(Border value)
Sets annotation border characteristics. Border
public String getActiveState()
Gets current annotation appearance state.
public void setActiveState(String value)
Sets current annotation appearance state.
public Characteristics getCharacteristics()
Gets annotation characteristics.
public AppearanceDictionary getStates()
Gets appearance dictionary of annotation.
@Deprecated public int getAlignment()
Annotation alignment. This property is obsolete. Use HorizontalAligment instead.
@Deprecated public void setAlignment(int value)
Annotation alignment. This property is obsolete. Use HorizontalAligment instead.
value
- TextAlignmentpublic int getHorizontalAlignment_Annotation_New()
Gets or sets text alignmennt for annotation.
public void setHorizontalAlignment_Annotation_New(int value)
public abstract void accept(AnnotationSelector visitor)
Accepts visitor for annotation processing.
visitor
- AnnotationSelector object.public void flatten()
Places annotation contents directly on the page, annotation object will be removed.
public String getFullName()
Gets full qualified name of the annotation.
public AppearanceDictionary getAppearance()
Gets appearance dictionary of the annotation.
public int getPageIndex()
Gets index of page which contains annotation.
public int getPageIndex(Annotation annotation)
Copyright © 2014 Aspose. All Rights Reserved.