com.groupdocs.comparison.options

Class PreviewOptions



  • public class PreviewOptions
    extends Object

    Represents document preview options.

    • Constructor Detail

      • PreviewOptions

        public PreviewOptions(Delegates.CreatePageStream createPageStream)

        Initializes a new instance of PreviewOptions class.

        Parameters:
        createPageStream - Delegate which defines method to create output page preview stream.
      • PreviewOptions

        public PreviewOptions(Delegates.CreatePageStream createPageStream,
                              Delegates.ReleasePageStream releasePageStream)

        Initializes a new instance of PreviewOptions class.

        Parameters:
        createPageStream - Delegate which defines method to create output page preview stream.
        releasePageStream - Delegate which defines method to release output page preview stream.
    • Method Detail

      • getCreatePageStream

        public Delegates.CreatePageStream getCreatePageStream()
        Delegate which defines method to create output page preview stream.
        Returns:
        CreatePageStream callback
      • getHeight

        public final int getHeight()

        Preview height.

        Returns:
        height height
      • getPageNumbers

        public final int[] getPageNumbers()

        Page numbers that will be previewed.

        Returns:
        page numbers
      • getPreviewFormat

        public final int getPreviewFormat()

        Preview image format.

        Returns:
        preview format
      • getReleasePageStream

        public Delegates.ReleasePageStream getReleasePageStream()
        Delegate which defines method to remove output page preview stream.
        Returns:
        ReleasePageStream callback
      • getWidth

        public final int getWidth()

        Preview width.

        Returns:
        width width
      • setCreatePageStream

        public void setCreatePageStream(Delegates.CreatePageStream createPageStream)
        Delegate which defines method to create output page preview stream.
        Parameters:
        createPageStream - CreatePageStream callback
      • setHeight

        public final void setHeight(int value)

        Preview height.

        Parameters:
        value - height
      • setPageNumbers

        public final void setPageNumbers(int[] value)

        Page numbers that will be previewed.

        Parameters:
        value - page numbers
      • setPreviewFormat

        public final void setPreviewFormat(int value)

        Preview image format.

        Parameters:
        value - the value
      • setReleasePageStream

        public void setReleasePageStream(Delegates.ReleasePageStream releasePageStream)
        Delegate which defines method to remove output page preview stream.
        Parameters:
        releasePageStream - ReleasePageStream callback
      • setWidth

        public final void setWidth(int value)

        Preview width.

        Parameters:
        value - width