com.groupdocs.viewer.options

Class ViewInfoOptions

    • Method Detail

      • forHtmlView

        public static ViewInfoOptions forHtmlView(boolean renderSinglePage)
        Initializes new instance of ViewInfoOptions class to retrieve information about view when rendering into HTML.
        Parameters:
        renderSinglePage - Enables HTML content will be rendered to single page.
        Returns:
        New instance of ViewInfoOptions class.
      • forJpgView

        public static ViewInfoOptions forJpgView(boolean extractText)
        Initializes new instance of ViewInfoOptions class to retrieve information about view when rendering into JPG.
        Parameters:
        extractText - Enables text extraction.
        Returns:
        New instance of ViewInfoOptions class.
      • forPngView

        public static ViewInfoOptions forPngView(boolean extractText)
        Initializes new instance of ViewInfoOptions class to retrieve information about view when rendering into PNG.
        Parameters:
        extractText - Enables text extraction.
        Returns:
        New instance of ViewInfoOptions class.
      • getHeight

        public int getHeight()
        Image height (for rendering to PNG/JPG only)
      • getMaxHeight

        public int getMaxHeight()
        Max height of the output image (for rendering to PNG/JPG only)
        Specified by:
        getMaxHeight in interface IMaxSizeOptions
      • getMaxWidth

        public int getMaxWidth()
        Max width of the output image (for rendering to PNG/JPG only)
        Specified by:
        getMaxWidth in interface IMaxSizeOptions
      • getWidth

        public int getWidth()
        Image width (for rendering to PNG/JPG only)
      • isExtractText

        public boolean isExtractText()
        Indicates that text extraction is enabled.
      • setExtractText

        public void setExtractText(boolean extractText)
        Indicates that text extraction is enabled.
      • setHeight

        public void setHeight(int height)
        Image height (for rendering to PNG/JPG only)
      • setMaxHeight

        public void setMaxHeight(int maxHeight)
        Max height of the output image (for rendering to PNG/JPG only)
        Specified by:
        setMaxHeight in interface IMaxSizeOptions
      • setMaxWidth

        public void setMaxWidth(int maxWidth)
        Max width of the output image (for rendering to PNG/JPG only)
        Specified by:
        setMaxWidth in interface IMaxSizeOptions
      • setWidth

        public void setWidth(int width)
        Image width (for rendering to PNG/JPG only)