com.groupdocs.conversion.options.save

Class PdfFormattingOptions



  • public class PdfFormattingOptions
    extends Object

    Define Pdf formating options

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean getCenterWindow()
      Specify whether position of the document's window will be centered on the screen.
      int getDirection()
      Sets reading order of text: L2R (left to right) or R2L (right to left).
      boolean getDisplayDocTitle()
      Specifying whether document's window title bar should display document title.
      boolean getFitWindow()
      Specify whether document window must be resized to fit the first displayed page.
      boolean getHideMenubar()
      Specify whether menu bar should be hidden when document is active.
      boolean getHideToolBar()
      Specifying whether toolbar should be hidden when document is active.
      boolean getHideWindowUI()
      Specify whether user interface elements should be hidden when document is active.
      int getNonFullScreenPageMode()
      Sets page mode, specifying how to display the document on exiting full-screen mode.
      int getPageLayout()
      Sets page layout which shall be used when the document is opened.
      int getPageMode()
      Sets page mode, specifying how document should be displayed when opened.
      void setCenterWindow(boolean value)
      Specify whether position of the document's window will be centered on the screen.
      void setDirection(int value)
      Sets reading order of text: L2R (left to right) or R2L (right to left).
      void setDisplayDocTitle(boolean value)
      Specifying whether document's window title bar should display document title.
      void setFitWindow(boolean value)
      Specify whether document window must be resized to fit the first displayed page.
      void setHideMenubar(boolean value)
      Specify whether menu bar should be hidden when document is active.
      void setHideToolBar(boolean value)
      Specifying whether toolbar should be hidden when document is active.
      void setHideWindowUI(boolean value)
      Specify whether user interface elements should be hidden when document is active.
      void setNonFullScreenPageMode(int value)
      Sets page mode, specifying how to display the document on exiting full-screen mode.
      void setPageLayout(int value)
      Sets page layout which shall be used when the document is opened.
      void setPageMode(int value)
      Sets page mode, specifying how document should be displayed when opened.
    • Constructor Detail

      • PdfFormattingOptions

        public PdfFormattingOptions()
    • Method Detail

      • getCenterWindow

        public final boolean getCenterWindow()

        Specify whether position of the document's window will be centered on the screen. Default: false.

        Returns:
        center window flag
      • setCenterWindow

        public final void setCenterWindow(boolean value)

        Specify whether position of the document's window will be centered on the screen. Default: false.

        Parameters:
        value - center window flag
      • getDirection

        public final int getDirection()

        Sets reading order of text: L2R (left to right) or R2L (right to left). Default: L2R.

        Returns:
        Pdf direction
      • setDirection

        public final void setDirection(int value)

        Sets reading order of text: L2R (left to right) or R2L (right to left). Default: L2R.

        Parameters:
        value - Pdf direction
      • getDisplayDocTitle

        public final boolean getDisplayDocTitle()

        Specifying whether document's window title bar should display document title. Default: false.

        Returns:
        Display Doc Title flag
      • setDisplayDocTitle

        public final void setDisplayDocTitle(boolean value)

        Specifying whether document's window title bar should display document title. Default: false.

        Parameters:
        value - Display Doc Title flag
      • getFitWindow

        public final boolean getFitWindow()

        Specify whether document window must be resized to fit the first displayed page. Default: false.

        Returns:
        Fit Window flag
      • setFitWindow

        public final void setFitWindow(boolean value)

        Specify whether document window must be resized to fit the first displayed page. Default: false.

        Parameters:
        value - Fit Window flag
      • getHideMenubar

        public final boolean getHideMenubar()

        Specify whether menu bar should be hidden when document is active. Default: false.

        Returns:
        Hide Menubar flag
      • setHideMenubar

        public final void setHideMenubar(boolean value)

        Specify whether menu bar should be hidden when document is active. Default: false.

        Parameters:
        value - Hide Menubar flag
      • getHideToolBar

        public final boolean getHideToolBar()

        Specifying whether toolbar should be hidden when document is active. Default: false.

        Returns:
        Hide ToolBar flag
      • setHideToolBar

        public final void setHideToolBar(boolean value)

        Specifying whether toolbar should be hidden when document is active. Default: false.

        Parameters:
        value - Hide ToolBar flag
      • getHideWindowUI

        public final boolean getHideWindowUI()

        Specify whether user interface elements should be hidden when document is active. Default: false.

        Returns:
        Hide Window UI flag
      • setHideWindowUI

        public final void setHideWindowUI(boolean value)

        Specify whether user interface elements should be hidden when document is active. Default: false.

        Parameters:
        value - Hide Window UI flag
      • getNonFullScreenPageMode

        public final int getNonFullScreenPageMode()

        Sets page mode, specifying how to display the document on exiting full-screen mode.

        Returns:
        page mode
      • setNonFullScreenPageMode

        public final void setNonFullScreenPageMode(int value)

        Sets page mode, specifying how to display the document on exiting full-screen mode.

        Parameters:
        value - page mode
      • getPageLayout

        public final int getPageLayout()

        Sets page layout which shall be used when the document is opened.

        Returns:
        page layout
      • setPageLayout

        public final void setPageLayout(int value)

        Sets page layout which shall be used when the document is opened.

        Parameters:
        value - page layout
      • getPageMode

        public final int getPageMode()

        Sets page mode, specifying how document should be displayed when opened.

        Returns:
        page mode
      • setPageMode

        public final void setPageMode(int value)

        Sets page mode, specifying how document should be displayed when opened.

        Parameters:
        value - page mode