com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class Watermark



  • public class Watermark
    extends Object

    Represents a watermark of the page.

    • Constructor Detail

      • Watermark

        public Watermark(BufferedImage nativeImage,
                 Rectangle rect)

        Initializes a watermark object with an image and it's position on a page.

        Parameters:
        nativeImage - image Image of the watermark.
        rect - Position of the watermark on the page.
      • Watermark

        public Watermark(BufferedImage nativeImage)

        Initializes a watermark structure with an image.

        Parameters:
        nativeImage - image Image of the watermark.
    • Method Detail

      • getImage

        public BufferedImage getImage()

        Gets an image of the watermark.

        Returns:
        BufferedImage object
      • getPosition

        public Rectangle getPosition()

        Gets a position of the watermark's image on a page.

        Returns:
        Rectangle object
      • getAvailable

        public boolean getAvailable()

        Gets a flag the watermark is present.

        Returns:
        boolean value