Class OperationWatermarkPosition


  • public class OperationWatermarkPosition
    extends Object
    Used to set the position of the watermark in the PDF document.
    • Constructor Detail

      • OperationWatermarkPosition

        public OperationWatermarkPosition()
    • Method Detail

      • getAspectRatio

        @Nullable
        public @Nullable Boolean getAspectRatio()
        Forces the aspect ratio to be maintained when a watermark is scaled if \"width\" and \"height\" are specified.
        Returns:
        aspectRatio
      • setAspectRatio

        public void setAspectRatio​(Boolean aspectRatio)
      • getHeight

        @Nullable
        public @Nullable Integer getHeight()
        Forces the specified height for the watermark if the values are not equal 0. In this case, the watermark will be scaled inside the area, which may result in the image losing quality or being distorted (please refer to \"aspectRatio\" as well) minimum: 0
        Returns:
        height
      • setHeight

        public void setHeight​(Integer height)
      • getMetrics

        @Nullable
        public @Nullable OperationWatermarkPosition.MetricsEnum getMetrics()
        Unit for the X-axis/Y-axis position and signature field height and width arguments: * pt = Points(1/72 inch) * pc = Picas(12 points) * px = Pixels(1/96 inch) * mm = Millimeters * in = Inches
        Returns:
        metrics
      • getPosition

        @Nullable
        public @Nullable OperationWatermarkPosition.PositionEnum getPosition()
        Uses one of multiple preset positions in order to position the watermark on the page. * custom = Disable the use of a preset position. * top\\_left = Positions the watermark in the upper left corner. * top\\_center = Positions the watermark in the centre at the top margin. * top\\_right = Positions the watermark in the top right corner. * center\\_left = Positions the watermark at the centre of the page, to the left. * center\\_center = Positions the watermark at the centre of the page. * center\\_right = Positions the watermark at the centre of the page, to the right. * bottom\\_left = Positions the watermark in the bottom left corner. * bottom\\_center = Positions the watermark in the centre at the bottom margin. * bottom\\_right = Positions the watermark in the bottom right corner.
        Returns:
        position
      • getWidth

        @Nullable
        public @Nullable Integer getWidth()
        Forces the specified width for the watermark if the values are not equal 0. In this case, the watermark will be scaled inside the area, which may result in the image losing quality or being distorted (please refer to \"aspectRatio\" as well) minimum: 0
        Returns:
        width
      • setWidth

        public void setWidth​(Integer width)
      • getX

        @Nullable
        public @Nullable Integer getX()
        Used to define the X-axis position (as per metrics), starting from the top left corner of the PDF document, if position is set to \"custom.\". If \"position is set to a different value, these arguments will be interpreted as \"offsets\" from the selected position. This specification applies for both the text and image output. minimum: 0
        Returns:
        x
      • setX

        public void setX​(Integer x)
      • getY

        @Nullable
        public @Nullable Integer getY()
        Used to define the Y-axis position (as per metrics), starting from the top left corner of the PDF document, if position is set to \"custom.\". If \"position is set to a different value, these arguments will be interpreted as \"offsets\" from the selected position. This specification applies for both the text and image output. minimum: 0
        Returns:
        y
      • setY

        public void setY​(Integer y)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object