com.groupdocs.watermark

Interfaces

Classes

Exceptions

com.groupdocs.watermark

Class PdfPage



  • public class PdfPage
    extends DocumentPart

    Represents pdf document page.

    • Method Detail

      • getWidth

        public final double getWidth()

        Gets the width of this PdfPage in points.

        Returns:
        The width of this PdfPage in points.
      • getHeight

        public final double getHeight()

        Gets the height of this PdfPage in points.

        Returns:
        The height of this PdfPage in points.
      • getArtifacts

        public final PdfArtifactCollection getArtifacts()

        Gets the collection of all artifacts of this PdfPage.

        Returns:
        The collection of all artifacts of this PdfPage.
      • getXObjects

        public final PdfXObjectCollection getXObjects()

        Gets the collection of all XObjects of this PdfPage.

        Returns:
        The collection of all XObjects of this PdfPage.
      • getAnnotations

        public final PdfAnnotationCollection getAnnotations()

        Gets the collection of all annotations of this PdfPage.

        Returns:
        The collection of all annotations of this PdfPage.
      • addArtifactWatermark

        public final void addArtifactWatermark(Watermark watermark)

        Adds an artifact watermark to this PdfPage. This method assumes that watermark offset and size are measured in points (if they are assigned).

        Parameters:
        watermark - The watermark to add to the page.
      • addAnnotationWatermark

        public final void addAnnotationWatermark(Watermark watermark,
                                  boolean isPrintOnly)

        Adds an annotation watermark to this PdfPage. This method assumes that watermark offset and size are measured in points (if they are assigned).

        Parameters:
        watermark - The watermark to add to the page.
        isPrintOnly - The value indicating whether annotation will be printed, but not displayed in pdf viewing application.
      • addAnnotationWatermark

        public final void addAnnotationWatermark(Watermark watermark)

        Adds an annotation watermark to this PdfPage. This method assumes that watermark offset and size are measured in points (if they are assigned).

        Parameters:
        watermark - The watermark to add to the page.
      • rasterize

        public void rasterize(int horizontalResolution,
                     int verticalResolution,
                     int imageFormat)

        Converts page content into an image.

        Parameters:
        horizontalResolution - Horizontal image resolution.
        verticalResolution - Vertical image resolution.
        imageFormat - Image format.