| Modifier and Type | Field and Description |
|---|---|
| public static final String | ATTACHMENT_NAME_GRAPH
See get/setAttachmentName. |
| public static final String | ATTACHMENT_NAME_PAPERCLIP
See get/setAttachmentName. |
| public static final String | ATTACHMENT_NAME_PUSH_PIN
See get/setAttachmentName. |
| public static final String | ATTACHMENT_NAME_TAG
See get/setAttachmentName. |
| private PDAppearanceHandler | |
| public static final String | SUB_TYPE
The type of annotation. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDAnnotationFileAttachment(COSDictionary
the PDF object to represent as a field. field)Creates a Link annotation from a COSDictionary, expected to be a correct object definition. |
| Modifier and Type | Method and Description |
|---|---|
| public void | constructAppearances()
Overrides org. Create the appearance entry for this annotation. |
| public void | constructAppearances(PDDocument
the related document document)Overrides org. Create the appearance entry for this annotation. |
| public String | Returns: The name that describes the visual cue for the attachment.This is the name used to draw the type of attachment. |
| public PDFileSpecification | |
| public void | setAttachmentName(String
The name of the visual icon to draw. name)Set the name used to draw the attachment icon. |
| public void | setCustomAppearanceHandler(PDAppearanceHandler
custom appearance handler appearanceHandler)Set a custom appearance handler for generating the annotations appearance streams. |
| public void |
| ATTACHMENT_NAME_GRAPH | back to summary |
|---|---|
| public static final String ATTACHMENT_NAME_GRAPH See get/setAttachmentName. | |
| ATTACHMENT_NAME_PAPERCLIP | back to summary |
|---|---|
| public static final String ATTACHMENT_NAME_PAPERCLIP See get/setAttachmentName. | |
| ATTACHMENT_NAME_PUSH_PIN | back to summary |
|---|---|
| public static final String ATTACHMENT_NAME_PUSH_PIN See get/setAttachmentName. | |
| ATTACHMENT_NAME_TAG | back to summary |
|---|---|
| public static final String ATTACHMENT_NAME_TAG See get/setAttachmentName. | |
| customAppearanceHandler | back to summary |
|---|---|
| private PDAppearanceHandler customAppearanceHandler | |
| SUB_TYPE | back to summary |
|---|---|
| public static final String SUB_TYPE The type of annotation. | |
| PDAnnotationFileAttachment | back to summary |
|---|---|
| public PDAnnotationFileAttachment() Constructor. | |
| PDAnnotationFileAttachment | back to summary |
|---|---|
| public PDAnnotationFileAttachment(COSDictionary field) Creates a Link annotation from a COSDictionary, expected to be a correct object definition.
| |
| constructAppearances | back to summary |
|---|---|
| public void constructAppearances() Overrides org. Doc from org. Create the appearance entry for this annotation. Not having it may prevent display in some viewers. This method is for overriding in subclasses, the default implementation does nothing.
| |
| constructAppearances | back to summary |
|---|---|
| public void constructAppearances(PDDocument document) Overrides org. Doc from org. Create the appearance entry for this annotation. Not having it may prevent display in some viewers. This method is for overriding in subclasses, the default implementation does nothing.
| |
| getAttachmentName | back to summary |
|---|---|
| public String getAttachmentName() This is the name used to draw the type of attachment. See the ATTACHMENT_NAME_XXX constants.
| |
| getFile | back to summary |
|---|---|
| public PDFileSpecification getFile() throws IOException Return the attached file.
| |
| setAttachmentName | back to summary |
|---|---|
| public void setAttachmentName(String name) Set the name used to draw the attachment icon. See the ATTACHMENT_NAME_XXX constants.
| |
| setCustomAppearanceHandler | back to summary |
|---|---|
| public void setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler) Set a custom appearance handler for generating the annotations appearance streams.
| |
| setFile | back to summary |
|---|---|
| public void setFile(PDFileSpecification file) Set the attached file.
| |