PDF4Java Reference Documentation
com.o2sol.pdf4java.annotations Package / PDFFileAttachmentAnnotation Class
Fields Methods Collapse All Expand All Members Options: Show All Members Options: Filtered
Include Inherited Members
Include Protected Members
In This Topic

PDFFileAttachmentAnnotation Class Members
In This Topic

The following tables list the members exposed by PDFFileAttachmentAnnotation.

Public Constructors

| Name | Description
--- | --- | ---
| PDFFileAttachmentAnnotation Constructor | Overloaded.

Top
Public Fields

| Name | Description
--- | --- | ---
| GRAPH | This name creates a Graph icon for the annotation.
| PAPER_CLIP | This name creates a Paperclip icon for the annotation.
| PUSH_PIN | This name creates a PushPin icon for the annotation.
| TAG | This name creates a Tag icon for the annotation.

Top
Protected Fields

| Name | Description
--- | --- | ---
| annotationType | (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| appearance | (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| cosAnnotation | (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| doubleBuffer | (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isInitialization | True if the annotation is in process of initialization. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isStandardAppearance | (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| page | (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| visualRectangle | (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)

Top
Public Methods

| Name | Description
--- | --- | ---
| beginInit | Signals the start of the initialization of annotation's properties. The annotation appearance is not updated while properties are initialized. When initialization is completed, call to signal the end of initialization and update the annotation appearance. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| canRotate | Gets a value indicating whether the annotation should be rotated when the page is rotated. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| createAnnotationAppearance | Creates the visual appearance for the annotation. This method supports the internal library infrastructure and should not be used by external client code.
| createAppearance | Creates the visual appearance for the annotation. This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| createFromCosAnnotation | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| createFromXFDF | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| endInit | Signals the end of the initialization of annotation's properties. The annotation appearance is updated when the initialization ends. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| exportAsXFDF | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| flatten | Merges the annotation appearance with the page content stream. After the annotation is flattened, it is removed from the page's annotations collection. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getAuthor | Gets the annotation author. (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| getContents | Gets the annotation contents. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getCosAnnotation | Gets the COS annotation. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getCreationDate | Gets the annotation creation date. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getDescription | Gets the file description.
| getDisplayRectangle | Gets the display rectangle of this annotation. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getFileName | Gets the name of the file attachment.
| getIcon | Gets the file attachment annotation icon.
| getID | Gets the annotation ID. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getInReplyTo | Gets the annotation that this annotation is "in reply to". (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| getInteriorColor | Gets the annotation interior color.
| getModifiedDate | Gets the annotation modified date. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getMouseDownAction | Gets the mouse down action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getMouseEnterAction | Gets the mouse enter action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getMouseLeaveAction | Gets the mouse leave action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getMouseUpAction | Gets the mouse up action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getNormalAppearance | Gets the annotation normal appearance. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getOpacity | Gets the annotation opacity. (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| getOutlineColor | Gets the annotation outline color.
| getPage | Gets the page that contains this annotation.. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPageCloseAction | Gets the page close action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPageInvisibleAction | Gets the page invisible action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPageOpenAction | Gets the page open action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPageVisibleAction | Gets the page visible action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPayload | Gets the content of the file attachment.
| getPDFRectangle | Gets the annotation rectangle in standard PDF coordinates. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPopup | Gets the associated popup annotation. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getPosition | Gets the annotation position on the page.
| getRotation | Gets the annotation rotation angle. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getSize | Gets the file attachment size.
| getSubject | Gets the annotation subject. (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| getToggleNoView | Gets a value indicating whether the interpretation of isViewable method should be reversed. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| getType | Gets the type of the annotation. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| importFromXFDF | This method supports the internal library infrastructure and should not be used by external client code.
| isHidden | Gets a value indicating whether to display the annotation or not. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isInvisible | Gets a value indicating whether the annotation should be displayed if it does not belong to one of the standard annotation types. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isLocked | Gets a value indicating whether the annotation should be modified. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isLockedContents | Gets a value indicating whether the annotation contents should be modified. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isPrintable | Gets a value indicating whether the annotation should be printed. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isReadOnly | Gets a value indicating whether the annotation is read only. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isViewable | Gets a value indicating whether the annotation should be displayed. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| isZoomable | Gets a value indicating whether the annotation should be scaled to current page zoom. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setAuthor | Sets the annotation author. (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| setCanRotate | Sets a value indicating whether the annotation should be rotated when the page is rotated. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setContents | Sets the annotation contents. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setCreationDate | Sets the annotation creation date. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setDescription | Sets the file description.
| setDisplayRectangle | Sets the display rectangle of this annotation Object.
| setFileName | Sets the name of the file attachment.
| setHidden | Sets a value indicating whether to display the annotation or not. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setIcon | Sets the file attachment annotation icon. The icon name defines the annotation's visual appearance. The library supports a predefined set of names (, , , ) for which standard appearance is created. When a custom name is used, a custom appearance must also be provided.
| setID | Sets the annotation ID. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setInReplyTo | Sets the annotation that this annotation is "in reply to". (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| setInteriorColor | Sets the annotation interior color. The color must be Gray, RGB or CMYK.
| setInvisible | Sets a value indicating whether the annotation should be displayed if it does not belong to one of the standard annotation types. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setLocked | Sets a value indicating whether the annotation should be modified. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setLockedContents | Sets a value indicating whether the annotation contents should be modified. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setModifiedDate | Sets the annotation modified date. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setMouseDownAction | Sets the mouse down action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setMouseEnterAction | Sets the mouse enter action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setMouseLeaveAction | Sets the mouse leave action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setMouseUpAction | Sets the mouse up action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setNormalAppearance | Sets the annotation normal appearance.
| setOpacity | Sets the annotation opacity. (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| setOutlineColor | Sets the annotation outline color. The color must be Gray, RGB or CMYK.
| setPageCloseAction | Sets the page close action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setPageInvisibleAction | Sets the page invisible action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setPageOpenAction | Sets the page open action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setPageVisibleAction | Sets the page visible action. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setPayload | Sets the content of the file attachment.
| setPDFRectangle | Sets the annotation rectangle in standard PDF coordinates. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setPopup | Sets the associated popup annotation. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setPosition | Overloaded. Sets the annotation position on the page.
| setPrintable | Sets a value indicating whether the annotation should be printed. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setReadOnly | Sets a value indicating whether the annotation is read only. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setRotation | Sets the annotation rotation angle. The accepted values for this property are 0, 90, 180 and 270 degrees. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setSubject | Sets the annotation subject. (Inherited from com.o2sol.pdf4java.annotations.PDFMarkupAnnotation)
| setToggleNoView | Sets a value indicating whether the interpretation of isViewable method should be reversed. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setViewable | Sets a value indicating whether the annotation should be displayed. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setZoomable | Sets a value indicating whether the annotation should be scaled to current page zoom. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod1 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod2 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod3 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod4 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod5 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod6 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod7 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| zInternalMethod8 | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)

Top
Protected Methods

| Name | Description
--- | --- | ---
| initActions | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| initAdditionalAction | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| initAppearance | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| setAction | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| writeXFDFAttributes | This method supports the internal library infrastructure and should not be used by external client code.
| writeXFDFChildNodes | This method supports the internal library infrastructure and should not be used by external client code.
| writeXFDFEndElement | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.annotations.PDFAnnotation)
| writeXFDFStartElement | This method supports the internal library infrastructure and should not be used by external client code.

Top
See Also

#### Reference

PDFFileAttachmentAnnotation Class
com.o2sol.pdf4java.annotations Package

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.