com.groupdocs.watermark.options

Interfaces

Classes

com.groupdocs.watermark.options

Class PreviewOptions

    • Constructor Detail

      • PreviewOptions

        public PreviewOptions(ICreatePageStream createPageStream)
        Initializes a new instance of the PreviewOptions class causing the output stream to be closed.
        Parameters:
        createPageStream - Creates a stream for a specific page preview.
      • PreviewOptions

        public PreviewOptions(ICreatePageStream createPageStream,
                      IReleasePageStream releasePageStream)
        Initializes a new instance of PreviewOptions class causing the output stream to be returned to the client for further use.
        Parameters:
        createPageStream - Creates a stream for a specific page preview.
        releasePageStream - Notifies that the page preview generation is done and gets the output stream.
    • Method Detail

      • getWidth

        public final int getWidth()

        Gets the page preview width.

        Returns:
        The page preview width.
      • setWidth

        public final void setWidth(int value)

        Sets the page preview width.

        Parameters:
        value - The page preview width.
      • getHeight

        public final int getHeight()

        Gets the page preview height.

        Returns:
        The page preview height.
      • setHeight

        public final void setHeight(int value)

        Sets the page preview height.

        Parameters:
        value - The page preview height.
      • getPageNumbers

        public final int[] getPageNumbers()

        Gets an array of page numbers to generate previews.

        Returns:
        The array of page numbers to generate previews.
      • setPageNumbers

        public final void setPageNumbers(int[] value)

        Sets an array of page numbers to generate previews.

        Parameters:
        value - The array of page numbers to generate previews.
      • getPreviewFormat

        public final int getPreviewFormat()

        Gets the preview image format.

        Returns:
        The preview image format.
      • setPreviewFormat

        public final void setPreviewFormat(int value)

        Sets the preview image format.

        Parameters:
        value - The preview image format.
      • getCreatePageStream

        public final ICreatePageStream getCreatePageStream()

        Gets an instance of the page stream creation class.

        Returns:
        The instance of the page stream creation class.
      • setCreatePageStream

        public final void setCreatePageStream(ICreatePageStream value)

        Sets an instance of the page stream creation class.

        Parameters:
        value - The instance of the page stream creation class.
      • getReleasePageStream

        public final IReleasePageStream getReleasePageStream()

        Gets an instance of the page preview completion class.

        Returns:
        The instance of the page preview completion delegate.
      • setReleasePageStream

        public final void setReleasePageStream(IReleasePageStream value)

        Sets an instance of the page preview completion class.

        Parameters:
        value - The instance of the page preview completion delegate.