com.groupdocs.watermark.options

Interfaces

Classes

com.groupdocs.watermark.options

Class PreviewOptions



  • public class PreviewOptions
    extends Object

    Provides options to sets requirements and stream delegates for preview generation.

    • 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 or sets the page preview width.

      • setWidth

        public final void setWidth(int value)

        Gets or sets the page preview width.

      • getHeight

        public final int getHeight()

        Gets or sets the page preview height.

      • setHeight

        public final void setHeight(int value)

        Gets or sets the page preview height.

      • getPageNumbers

        public final int[] getPageNumbers()

        Gets or sets an array of page numbers to generate previews.

      • setPageNumbers

        public final void setPageNumbers(int[] value)

        Gets or sets an array of page numbers to generate previews.

      • getPreviewFormat

        public final int getPreviewFormat()

        Gets or sets the preview image format.

      • setPreviewFormat

        public final void setPreviewFormat(int value)

        Gets or sets the preview image format.

      • getCreatePageStream

        public final ICreatePageStream getCreatePageStream()

        Gets or sets an instance of the page stream creation delegate.

      • setCreatePageStream

        public final void setCreatePageStream(ICreatePageStream value)

        Gets or sets an instance of the page stream creation delegate.

      • getReleasePageStream

        public final IReleasePageStream getReleasePageStream()

        Gets or sets an instance of the page preview completion delegate.

      • setReleasePageStream

        public final void setReleasePageStream(IReleasePageStream value)

        Gets or sets an instance of the page preview completion delegate.