COSObjectablepublic class PDAnnotationFileAttachment extends PDAnnotationMarkup
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ATTACHMENT_NAME_GRAPH |
See get/setAttachmentName.
|
static java.lang.String |
ATTACHMENT_NAME_PAPERCLIP |
See get/setAttachmentName.
|
static java.lang.String |
ATTACHMENT_NAME_PUSH_PIN |
See get/setAttachmentName.
|
static java.lang.String |
ATTACHMENT_NAME_TAG |
See get/setAttachmentName.
|
static java.lang.String |
SUB_TYPE |
The type of annotation.
|
RT_GROUP, RT_REPLY, SUB_TYPE_CARET, SUB_TYPE_FREETEXT, SUB_TYPE_INK, SUB_TYPE_POLYGON, SUB_TYPE_POLYLINE, SUB_TYPE_SOUND| Constructor | Description |
|---|---|
PDAnnotationFileAttachment() |
Constructor.
|
PDAnnotationFileAttachment(COSDictionary field) |
Creates a Link annotation from a COSDictionary, expected to be a correct object definition.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getAttachmentName() |
This is the name used to draw the type of attachment.
|
PDFileSpecification |
getFile() |
Return the attached file.
|
void |
setAttachementName(java.lang.String name) |
Deprecated.
|
void |
setAttachmentName(java.lang.String name) |
Set the name used to draw the attachment icon.
|
void |
setFile(PDFileSpecification file) |
Set the attached file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateAnnotation, getAnnotationFlags, getAnnotationName, getAppearance, getAppearanceState, getBorder, getColor, getColor, getContents, getCOSObject, getModifiedDate, getNormalAppearanceStream, getOptionalContent, getPage, getRectangle, getStructParent, getSubtype, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setAnnotationFlags, setAnnotationName, setAppearance, setAppearanceState, setBorder, setColor, setContents, setHidden, setInvisible, setLocked, setModifiedDate, setModifiedDate, setNoRotate, setNoView, setNoZoom, setOptionalContent, setPage, setPrinted, setReadOnly, setRectangle, setStructParent, setToggleNoViewgetBorderStyle, getConstantOpacity, getCreationDate, getExternalData, getInReplyTo, getIntent, getPopup, getReplyType, getRichContents, getSubject, getTitlePopup, setBorderStyle, setConstantOpacity, setCreationDate, setExternalData, setInReplyTo, setIntent, setPopup, setReplyType, setRichContents, setSubject, setTitlePopuppublic static final java.lang.String ATTACHMENT_NAME_PUSH_PIN
public static final java.lang.String ATTACHMENT_NAME_GRAPH
public static final java.lang.String ATTACHMENT_NAME_PAPERCLIP
public static final java.lang.String ATTACHMENT_NAME_TAG
public static final java.lang.String SUB_TYPE
public PDAnnotationFileAttachment()
public PDAnnotationFileAttachment(COSDictionary field)
field - the PDF object to represent as a field.public PDFileSpecification getFile() throws java.io.IOException
java.io.IOException - If there is an error creating the file spec.public void setFile(PDFileSpecification file)
file - The file that is attached.public java.lang.String getAttachmentName()
@Deprecated public void setAttachementName(java.lang.String name)
name - The name of the visual icon to draw.public void setAttachmentName(java.lang.String name)
name - The name of the visual icon to draw.Copyright © 2002–2018. All rights reserved.