PageToolsPluginOptions: { buttonPosition?: number | false; toolbarLayout?: PageToolButtonKey[] }

PageToolsPlugin options.

Type declaration

  • Optional buttonPosition?: number | false

    The position where the "Page tools" button should be inserted. Use false or -1 to skip insertion. Undefined means the position will be determined automatically.

  • Optional toolbarLayout?: PageToolButtonKey[]

    The page tools toolbar layout.

    Default

    Default layout: ["rotate-image", "flip-horizontal", "flip-vertical", "crop-image", "resize-image"]

    Example

    <script src="gcimageviewer.js"></script></head>
    <script src="plugins/pageTools.js"></script>
    <script>
    var viewer = new DsImageViewer("#root");
    var pageToolsPlugin = new PageToolsPlugin( { toolbarLayout: ["rotate-image", "flip-horizontal"] } );
    viewer.addPlugin(pageToolsPlugin);
    </script>