com.groupdocs.viewer.converter.options

Class PdfOptions



  • public class PdfOptions
    extends Object

    Provides options for rendering documents as PDF.

    Version:
    17.5.0
    Author:
    GroupDocs.Viewer Team
    • Constructor Detail

      • PdfOptions

        public PdfOptions()

        Initializes a new instance of the PdfOptions class.

    • Method Detail

      • getEnablePreciseRendering

        public boolean getEnablePreciseRendering()

        Indicates whether the PDF document is rendered in a precise mode or not. The default value is false.

        The following example demonstrates how to enable precise rendering. The precise rendering mode allows to keep maximum precision during positioning of glyphs on the page. When this option is enabled, it will degrade performance, but in certain cases will improve render result.
        Returns:
        a boolean.
      • setEnablePreciseRendering

        public void setEnablePreciseRendering(boolean value)

        Indicates whether the PDF document is rendered in a precise mode or not. The default value is false.

        The following example demonstrates how to enable precise rendering. The precise rendering mode allows to keep maximum precision during positioning of glyphs on the page. When this option is enabled, it will degrade performance, but in certain cases will improve render result.
        Parameters:
        value - a boolean.
      • getPreventGlyphsGrouping

        @Deprecated
        public boolean getPreventGlyphsGrouping()
        Deprecated. 

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

        The following example demonstrates how to set prevent glyphs grouping. 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.
        Returns:
        a boolean.
      • setPreventGlyphsGrouping

        @Deprecated
        public void setPreventGlyphsGrouping(boolean value)
        Deprecated. 

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

        The following example demonstrates how to set prevent glyphs grouping. 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.
        Parameters:
        value - a boolean.
      • getUseOriginalContentOrdering

        public boolean getUseOriginalContentOrdering()

        Specifies content ordering mode when rendering into HTML. The default value is false.

        The following example demonstrates how to enable original content ordering. When original content ordering is enabled, text and graphics are rendered into HTML according to z-order in original PDF document. This mode is preferable for rendering PDF documents with multi-layered layout. When original content ordering is not enabled text and graphics are rendered into HTML as a single layer.
        Returns:
        a boolean.
      • setUseOriginalContentOrdering

        public void setUseOriginalContentOrdering(boolean value)

        Specifies content ordering mode when rendering into HTML. The default value is false.

        The following example demonstrates how to enable original content ordering. When original content ordering is enabled, text and graphics are rendered into HTML according to z-order in original PDF document. This mode is preferable for rendering PDF documents with multi-layered layout. When original content ordering is not enabled text and graphics are rendered into HTML as a single layer.
        Parameters:
        value - a boolean.
      • getRenderLayersSeparately

        public boolean getRenderLayersSeparately()

        Specifies whether PDF document layers have to be separated when rendering into HTML. The default value is false.

        The following example demonstrates how to enable layers separate rendering. When rendering layered PDF documents into HTML, by default all layers are rendered as one. Enable layers separate rendering in order to group each PDF layer into separate elements, so that layers can be manipulated using Javascript.
        Returns:
        a boolean.
      • setRenderLayersSeparately

        public void setRenderLayersSeparately(boolean value)

        Specifies whether PDF document layers have to be separated when rendering into HTML. The default value is false.

        The following example demonstrates how to enable layers separate rendering. When rendering layered PDF documents into HTML, by default all layers are rendered as one. Enable layers separate rendering in order to group each PDF layer into separate elements, so that layers can be manipulated using Javascript.
        Parameters:
        value - a boolean.
      • getDeleteAnnotations

        public boolean getDeleteAnnotations()

        Specifies whether annotations from PDF documents should not be rendered. The default value is false.

        The following example demonstrates how to disable annotations rendering.
        Returns:
        a boolean.
      • setDeleteAnnotations

        public void setDeleteAnnotations(boolean value)

        Specifies whether annotations from PDF documents should not be rendered. The default value is false.

        The following example demonstrates how to disable annotations rendering.
        Parameters:
        value - a boolean.
      • hasNonDefaultFlags

        public boolean hasNonDefaultFlags()

        hasNonDefaultFlags.

        Returns:
        a boolean.
      • getFlags

        public int getFlags()

        getFlags.

        Returns:
        a int.