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 Page

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.

Book Mode

Show the cover page on the first page during double-page mode.

javascript
docViewer.webViewerSwitchSpreadMode(mode);
NameRequiredTypeDescription
modeyesnumberDisplay Modes Parameter, Single Page: 0, Two-up Page: 1, Book 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();