public final class FileAttachmentAnnotation extends MarkupAnnotation
Class describes file attachment annotation.
| Constructor and Description |
|---|
FileAttachmentAnnotation(Page page,
Rectangle rect,
FileSpecification fileSpec)
Creates new FileAttachment annotation on the specified page.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object to process annotation.
|
AnnotationType |
getAnnotationType()
Gets type of annotation.
|
FileSpecification |
getFile()
Get specification of the file associated with this annotation.
|
FileIcon |
getIcon()
Gets icon that shall be used in displaying annotation.
|
void |
setFile(FileSpecification value)
Set specification of the file associated with this annotation.
|
void |
setIcon(FileIcon value)
Sets icon that shall be used in displaying annotation.
|
clearState, getCreationDate, getInReplyTo, getOpacity, getPopup, getReplyType, getRichText, getState, getStateModel, getSubject, getTitle, setCreationDate, setInReplyTo, setMarkedState, setOpacity, setPopup, setReplyType, setReviewState, setReviewState, setRichText, setSubject, setTitlechangeAfterResize, createAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getPdfActions, getRect, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidthdeepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndexpublic FileAttachmentAnnotation(Page page, Rectangle rect, FileSpecification fileSpec)
Creates new FileAttachment annotation on the specified page.
page - Document's page where annotation should be created.rect - Required rectangle that sets annotation's border.fileSpec - Describes the file that shoud be bound with the annotation.public AnnotationType getAnnotationType()
Gets type of annotation.
getAnnotationType in class AnnotationAnnotationTypepublic FileSpecification getFile()
Get specification of the file associated with this annotation.
public void setFile(FileSpecification value)
Set specification of the file associated with this annotation.
value - file specification.public FileIcon getIcon()
Gets icon that shall be used in displaying annotation.
FileIconpublic void setIcon(FileIcon value)
Sets icon that shall be used in displaying annotation.
value - FileIcon valueFileIconpublic void accept(AnnotationSelector visitor)
Accepts visitor object to process annotation.
accept in class Annotationvisitor - Visitor object.Copyright © 2025 Aspose. All Rights Reserved.