org.pdfbox.pdmodel.interactive.annotation
Class PDAnnotationFileAttachment
- COSObjectable
public class PDAnnotationFileAttachment
This is the class that represents a file attachement.
createAnnotation, getAction, getActions, getAnnotationFlags, getAnnotationName, getAppearance, getAppearanceStream, getBoderStyle, getCOSObject, getColour, getContents, getDictionary, getModifiedDate, getRectangle, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setAction, setActions, setAnnotationFlags, setAnnotationName, setAppearance, setAppearanceStream, setBorderStyle, setColour, setContents, setHidden, setInvisible, setLocked, setModifiedDate, setNoRotate, setNoView, setNoZoom, setPrinted, setReadOnly, setRectangle, setToggleNoView |
ATTACHMENT_NAME_GRAPH
public static final String ATTACHMENT_NAME_GRAPH
See get/setAttachmentName.
ATTACHMENT_NAME_PAPERCLIP
public static final String ATTACHMENT_NAME_PAPERCLIP
See get/setAttachmentName.
ATTACHMENT_NAME_PUSH_PIN
public static final String ATTACHMENT_NAME_PUSH_PIN
See get/setAttachmentName.
ATTACHMENT_NAME_TAG
public static final String ATTACHMENT_NAME_TAG
See get/setAttachmentName.
SUB_TYPE
public static final String SUB_TYPE
The type of annotation.
PDAnnotationFileAttachment
public PDAnnotationFileAttachment()
Constructor.
PDAnnotationFileAttachment
public PDAnnotationFileAttachment(COSDictionary field)
Creates a Link annotation from a COSDictionary, expected to be
a correct object definition.
field - the PDF objet to represent as a field.
getAttachmentName
public String getAttachmentName()
This is the name used to draw the type of attachment.
See the ATTACHMENT_NAME_XXX constants.
- The name that describes the visual cue for the attachment.
setAttachementName
public void setAttachementName(String name)
Set the name used to draw the attachement icon.
See the ATTACHMENT_NAME_XXX constants.
name - The name of the visual icon to draw.
setFile
public void setFile(PDFileSpecification file)
Set the attached file.
file - The file that is attached.