com.groupdocs.viewer.options

Class PdfOptions



  • public class PdfOptions
    extends Object

    Provides options for rendering PDF documents.

    • Constructor Detail

      • PdfOptions

        public PdfOptions()

        Initializes new instance of PdfOptions class.

    • Method Detail

      • getImageQuality

        public final int getImageQuality()

        Specifies output image quality for image resources when rendering into HTML. The default value is Low.

      • isDisableCharsGrouping

        public final boolean isDisableCharsGrouping()

        Disables chars grouping to keep maximum precision during chars positioning when rendering the page.

      • isEnableFontHinting

        public final boolean isEnableFontHinting()

        Enables font hinting. The font hinting adjusts the display of an outline font. Supported only for TTF fonts when these fonts are used in source document.


        This option is supported when rendering into PNG or JPG formats.
      • isEnableLayeredRendering

        public final boolean isEnableLayeredRendering()

        Enables rendering of text and graphics according to z-order in original PDF document when rendering into HTML.


        By default text and graphics are rendered into HTML as a single layer.
      • setDisableCharsGrouping

        public final void setDisableCharsGrouping(boolean value)

        Disables chars grouping to keep maximum precision during chars positioning when rendering the page.

      • setEnableFontHinting

        public final void setEnableFontHinting(boolean value)

        Enables font hinting. The font hinting adjusts the display of an outline font. Supported only for TTF fonts when these fonts are used in source document.


        This option is supported when rendering into PNG or JPG formats.
      • setEnableLayeredRendering

        public final void setEnableLayeredRendering(boolean value)

        Enables rendering of text and graphics according to z-order in original PDF document when rendering into HTML.


        By default text and graphics are rendered into HTML as a single layer.
      • setImageQuality

        public final void setImageQuality(int value)

        Specifies output image quality for image resources when rendering into HTML. The default value is Low.