com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class FileAttachmentAnnotation

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable, com.aspose.pdf.engine.ITitledAnnotation


    public final class FileAttachmentAnnotation
    extends MarkupAnnotation

    Class describes file attachment annotation.

    • Constructor Detail

      • FileAttachmentAnnotation

        public FileAttachmentAnnotation(Page page,
                                        Rectangle rect,
                                        FileSpecification fileSpec)

        Creates new FileAttachment annotation on the specified page.

        Parameters:
        page - Document's page where annotation should be created.
        rect - Required rectangle that sets annotation's border.
        fileSpec - Describes the file that shoud be bound with the annotation.
    • Method Detail

      • getAnnotationType

        public int getAnnotationType()

        Gets type of annotation.

        Specified by:
        getAnnotationType in class Annotation
        Returns:
        int value
        See Also:
        AnnotationType
      • getFile

        public FileSpecification getFile()

        Get specification of the file associated with this annotation.

        Returns:
        file specification.
      • setFile

        public void setFile(FileSpecification value)

        Set specification of the file associated with this annotation.

        Parameters:
        value - file specification.
      • getIcon

        public int getIcon()

        Gets icon that shall be used in displaying annotation.

        Returns:
        FileIcon value
        See Also:
        FileIcon
      • setIcon

        public void setIcon(int value)

        Sets icon that shall be used in displaying annotation.

        Parameters:
        value - FileIcon value
        See Also:
        FileIcon
      • accept

        public void accept(AnnotationSelector visitor)

        Accepts visitor object to process annotation.

        Specified by:
        accept in class Annotation
        Parameters:
        visitor - Visitor object.