Skip to content
Guides

Display Modes

ComPDFKit for Web provides viewing PDFs in different display modes. Let's see what the display modes are and call the following method to display in different display modes. The corresponding parameters are shown in the following table.

Single Mode

Show one page at a time for users to continuously scroll up and down to navigate through the pages.

Double Page

Display two pages side-by-side and continuously scroll up and down to navigate through the pages.

Cover Mode

Show the cover page on the first page during two-up.

javascript
docViewer.webViewerSwitchSpreadMode(mode)
NameRequiredTypeDescription
modeyesnumberDisplay Modes Parameter, Single Mode: 0, Two-up Mode: 1, Cover Mode: 2

Full Screen Mode

It's a mode to view PDFs in full-screen, which fills the entire screen with the PDF content. The following method is given to start the full-screen presentation mode.

javascript
docViewer.requestFullScreenMode()