Sidebar
The side panels: Pages (thumbnails), Outline, Attachments, Signatures and Comments share one sidebar (see Document features). Each panel is false to leave it out, or an object for its own settings; a panel is offered on its own terms besides — outline and attachments when the document has some or they can be made, signatures when the document declares some, comments under every license (reading comments is viewing; the panel is read-only without annotations).
The current page is marked in the Pages panel by a bar in the gutter rather than a ring around the page. A panel that may edit is offered even to a document without any of its content, so the first bookmark or attachment can be made; a read-only one appears only for a document that has some.
A host that draws its own chrome (toolbar.layout: 'none') with its own Pages button sets rail: false, or it ends up with two controls for one panel: the SDK then draws neither the rail of tabs nor the panel's collapse button, the sidebar shows only while a panel is open, and the host's button is the way in and out through viewer.openPanel() — and where the panel floats over the page as a drawer, Escape inside it and a tap on its backdrop close it too, so a keyboard is never without a way out. On a phone the panel is the screen, with no backdrop to tap and no close of ours: your button is the only way out, so keep it outside the container. The panelChanged event reports every change, whoever made it, so that button stays right.
Example
const viewer = new PDFViewer(container, doc, { sidebar: { pages: { defaultOpen: false }, signatures: false, comments: { editing: false }, // a read-only review }, });
Options 15
false when your own chrome toggles the panels through openPanel().toolbar: { layout: 'none' }, sidebar: { rail: false }, // your own Pages button, not ours beside it
false leaves it out; a PagesPanelConfig object sets whether it starts open and whether it carries a Manage pages button. The thumbnails' own page actions (rotate, move, duplicate, delete) follow tools.managePages and need the edit-pages license feature.sidebar: { pages: { defaultOpen: false } }
edit-pages license feature.sidebar: { outline: { editing: false } }
edit-pages license feature; downloading an attachment from the panel needs extract.sidebar: { signatures: false }
annotations feature, which replying, editing, deleting and status need. comments: { editing: false } makes a read-only review. The selection bar's Comment action also needs this panel, editable.sidebar: { comments: { editing: false } }