com.groupdocs.viewer.options

Class PdfViewOptions



  • public class PdfViewOptions
    extends ViewOptions

    Provides options for rendering documents into PDF format.

    • Constructor Detail

      • PdfViewOptions

        public PdfViewOptions()

        Initializes new instance of PdfViewOptions class.


        This constructor initializes new instance of PdfViewOptions with "output.pdf" as file path format for the output file. The output file will be placed into current working directory of the application.
      • PdfViewOptions

        public PdfViewOptions(FileStreamFactory fileStreamFactory)

        Initializes new instance of PdfViewOptions class.

        Parameters:
        fileStreamFactory - The factory which implements methods for creating and releasing output file stream.
        Throws:
        IllegalArgumentException - Thrown when fileStreamFactory is null.
      • PdfViewOptions

        public PdfViewOptions(String outputFilePath)

        Initializes new instance of PdfViewOptions class.

        Parameters:
        outputFilePath - The path for output PDF file.
        Throws:
        IllegalArgumentException - Thrown when outputFilePath is null or empty.
    • Method Detail

      • getJpgQuality

        public final byte getJpgQuality()

        The quality of the JPG images contained by output PDF document; Valid values are between 1 and 100; Default value is 90.

      • getSecurity

        public final Security getSecurity()

        The output PDF document security options.

      • setJpgQuality

        public final void setJpgQuality(byte value)

        The quality of the JPG images contained by output PDF document; Valid values are between 1 and 100; Default value is 90.

      • setSecurity

        public final void setSecurity(Security value)

        The output PDF document security options.