Value | Description |
---|---|
`UseOutlines` | The bookmarks should be visible |
`UseThumbs` | The thumbnails should be visible |
`FullScreen` | Should be in the full screen mode |
`UseOC` | Optional content group should be visible |
`UseAttachments` | The attachments tab should be visible |
`UseNone` | The bookmarks and thumbnails tabs should not be visible |
`UseNone`
.import { defaultLayoutPlugin, setInitialTabFromPageMode } from '@react-pdf-viewer/default-layout';const defaultLayoutPluginInstance = defaultLayoutPlugin({setInitialTab: setInitialTabFromPageMode,});
`setInitialTab`
option`setInitialTabFromPageMode`
function takes the current PDF document and returns a Promise which resolves the zero-based index of the tab corresponding to the document page mode.