|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation
org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationMarkup
org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationFileAttachment
public class PDAnnotationFileAttachment
This is the class that represents a file attachement.
Field Summary | |
---|---|
static String |
ATTACHMENT_NAME_GRAPH
See get/setAttachmentName. |
static String |
ATTACHMENT_NAME_PAPERCLIP
See get/setAttachmentName. |
static String |
ATTACHMENT_NAME_PUSH_PIN
See get/setAttachmentName. |
static String |
ATTACHMENT_NAME_TAG
See get/setAttachmentName. |
static String |
SUB_TYPE
The type of annotation. |
Fields inherited from class org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationMarkup |
---|
RT_GROUP, RT_REPLY, SUB_TYPE_CARET, SUB_TYPE_FREETEXT, SUB_TYPE_INK, SUB_TYPE_POLYGON, SUB_TYPE_POLYLINE, SUB_TYPE_SOUND |
Fields inherited from class org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation |
---|
FLAG_HIDDEN, FLAG_INVISIBLE, FLAG_LOCKED, FLAG_NO_ROTATE, FLAG_NO_VIEW, FLAG_NO_ZOOM, FLAG_PRINTED, FLAG_READ_ONLY, FLAG_TOGGLE_NO_VIEW |
Constructor Summary | |
---|---|
PDAnnotationFileAttachment()
Constructor. |
|
PDAnnotationFileAttachment(COSDictionary field)
Creates a Link annotation from a COSDictionary, expected to be a correct object definition. |
Method Summary | |
---|---|
String |
getAttachmentName()
This is the name used to draw the type of attachment. |
PDFileSpecification |
getFile()
Return the attached file. |
void |
setAttachementName(String name)
Set the name used to draw the attachement icon. |
void |
setFile(PDFileSpecification file)
Set the attached file. |
Methods inherited from class org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationMarkup |
---|
getConstantOpacity, getCreationDate, getExternalData, getInReplyTo, getIntent, getPopup, getReplyType, getRichContents, getSubject, getTitlePopup, setConstantOpacity, setCreationDate, setExternalData, setInReplyTo, setIntent, setPopup, setReplyType, setRichContents, setSubject, setTitlePopup |
Methods inherited from class org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation |
---|
createAnnotation, getAnnotationFlags, getAnnotationName, getAppearance, getAppearanceStream, getColour, getContents, getCOSObject, getDictionary, getModifiedDate, getPage, getRectangle, getSubtype, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setAnnotationFlags, setAnnotationName, setAppearance, setAppearanceStream, setColour, setContents, setHidden, setInvisible, setLocked, setModifiedDate, setNoRotate, setNoView, setNoZoom, setPage, setPrinted, setReadOnly, setRectangle, setToggleNoView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ATTACHMENT_NAME_PUSH_PIN
public static final String ATTACHMENT_NAME_GRAPH
public static final String ATTACHMENT_NAME_PAPERCLIP
public static final String ATTACHMENT_NAME_TAG
public static final String SUB_TYPE
Constructor Detail |
---|
public PDAnnotationFileAttachment()
public PDAnnotationFileAttachment(COSDictionary field)
field
- the PDF objet to represent as a field.Method Detail |
---|
public PDFileSpecification getFile() throws IOException
IOException
- If there is an error creating the file spec.public void setFile(PDFileSpecification file)
file
- The file that is attached.public String getAttachmentName()
public void setAttachementName(String name)
name
- The name of the visual icon to draw.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |