com.groupdocs.watermark.options

Interfaces

Classes

com.groupdocs.watermark.options

Class PdfPreviewOptions



  • public class PdfPreviewOptions
    extends PreviewOptions

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

    • Field Detail

      • DefaultResolution

        public static final int DefaultResolution

        Default resolution in dots per inch.

        See Also:
        Constant Field Values
    • Constructor Detail

      • PdfPreviewOptions

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

        public PdfPreviewOptions(ICreatePageStream createPageStream,
                         IReleasePageStream releasePageStream)
        Initializes a new instance of PdfPreviewOptions 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

      • getResolution

        public final int getResolution()

        Gets or sets the resolution for the generated images, in dots per inch.


        The default value is 150.
      • setResolution

        public final void setResolution(int value)

        Gets or sets the resolution for the generated images, in dots per inch.


        The default value is 150.