com.groupdocs.viewer.converter.options

Class PdfOptions



  • public class PdfOptions
    extends Object

    Provides options for rendering documents as PDF.

    • Constructor Detail

      • PdfOptions

        public PdfOptions()

        Initializes a new instance of the PdfOptions class.

    • Method Detail

      • getPreventGlyphsGrouping

        public boolean getPreventGlyphsGrouping()

        Indicates whether the mode, when text glyphs will not be grouped into words and strings is on. The default value is false.


        This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately to each other.

      • setPreventGlyphsGrouping

        public void setPreventGlyphsGrouping(boolean value)

        Indicates whether the mode, when text glyphs will not be grouped into words and strings is on. The default value is false.


        This mode allows to keep maximum precision during positioning of glyphs on the page and it can be used for conversion documents with music notes or glyphs that should be placed separately to each other.

      • getUseOriginalContentOrdering

        public boolean getUseOriginalContentOrdering()

        Specifies content ordering mode for resultant HTML document. When UseOriginalContentOrdering is set to true text and graphics are added to resultant HTML document according to z-order in original PDF document. This mode is preferable for rendering PDF documents with multi-layered layout. When UseOriginalContentOrdering is set to false text and graphics are added as single layer to resultant HTML document. The default value is false.

      • setUseOriginalContentOrdering

        public void setUseOriginalContentOrdering(boolean value)

        Specifies content ordering mode for resultant HTML document. When UseOriginalContentOrdering is set to true text and graphics are added to resultant HTML document according to z-order in original PDF document. This mode is preferable for rendering PDF documents with multi-layered layout. When UseOriginalContentOrdering is set to false text and graphics are added as single layer to resultant HTML document. The default value is false.

      • getRenderLayersSeparately

        public boolean getRenderLayersSeparately()

        Specifies whether HTML document layers have to be separated in resultant HTML document. The default value is false.


        When rendering layered PDF documents into HTML, by default all layers are rendered as one, and you are unable to distinguish between them. As opposed to this, when this property is true, all PDF layers will be separated into different elements, so that you can manipulate them using JavaScript or JavaScript libraries.

      • setRenderLayersSeparately

        public void setRenderLayersSeparately(boolean value)

        Specifies whether PDF document layers have to be separated in resultant HTML document. The default value is false.


        When rendering layered PDF documents into HTML, by default all layers are rendered as one, and you are unable to distinguish between them. As opposed to this, when this property is true, all PDF layers will be separated into different elements, so that you can manipulate them using JavaScript or JavaScript libraries.

      • hasNonDefaultFlags

        public boolean hasNonDefaultFlags()
      • getFlags

        public int getFlags()