Class OperationFileAnnotation


  • public class OperationFileAnnotation
    extends Object
    Used to define the annotation element that should be linked to the file attachment. **Important:** If an \"annotation element\" is not defined for the \"file element,\" the attachment will be stored at the document level.
    • Constructor Detail

      • OperationFileAnnotation

        public OperationFileAnnotation()
    • Method Detail

      • getColor

        @Nullable
        public @Nullable String getColor()
        The annotation colour will change the main colour of the attachment's icon. The colour needs to be specified as a hexadecimal RGB value with a number sign before it.
        Returns:
        color
      • setColor

        public void setColor​(String color)
      • getHeight

        @Nullable
        public @Nullable Float getHeight()
        If this value is positive, the annotation will be generated with a fixed height corresponding to the value instead of using the dimensions of the specified icon. minimum: 0
        Returns:
        height
      • setHeight

        public void setHeight​(Float height)
      • getIcon

        @Nullable
        public @Nullable OperationFileAnnotation.IconEnum getIcon()
        If an attachment is embedded at the page level, this option can be used to specify the icon that should be used to show it: The value you use here will define which icon will be used, as well as the basic dimensions for the annotation generated in the PDF. If you use the \"None\" icon type, a predefined icon will not be used. Instead, this option will only use the dimensions specified in \"width\" and \"height\" to generate an annotation with a transparent selection box at the specified position. * graph = Diagram * paperclip = Paper clip * pushPin = Thumb tack * tag = Tag * none = Rectangular selection box
        Returns:
        icon
      • getLockedPosition

        @Nullable
        public @Nullable Boolean getLockedPosition()
        If this value is set to \"true\", the person viewing the document will not be allowed to move the icon for the file attached at the page level.
        Returns:
        lockedPosition
      • setLockedPosition

        public void setLockedPosition​(Boolean lockedPosition)
      • getOpacity

        @Nullable
        public @Nullable Integer getOpacity()
        Used to set the opacity for the attachment's icon. A percent value between 0 and 100 is allowed, whereby 0 equals the minimum opacity. The higher the value, the more the content of the PDF document will be covered over. minimum: 0 maximum: 100
        Returns:
        opacity
      • setOpacity

        public void setOpacity​(Integer opacity)
      • getPage

        @Nullable
        public @Nullable Integer getPage()
        Used to define the page on which the annotation will be generated, i.e., the page where the attachment will be stored. minimum: 1
        Returns:
        page
      • setPage

        public void setPage​(Integer page)
      • getPoint

        @NotNull
        public @NotNull OperationPoint getPoint()
        Get point
        Returns:
        point
      • getPopupText

        @Nullable
        public @Nullable String getPopupText()
        The text that should be displayed in the pop-up for the annotation.
        Returns:
        popupText
      • setPopupText

        public void setPopupText​(String popupText)
      • getWidth

        @Nullable
        public @Nullable Float getWidth()
        If this value is positive, the annotation will be generated with a fixed width corresponding to the value instead of using the dimensions of the specified icon. minimum: 0
        Returns:
        width
      • setWidth

        public void setWidth​(Float width)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object