PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
ComPDF 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.
Show one page at a time for users to continuously scroll up and down to navigate through the pages.
Display two pages side-by-side and continuously scroll up and down to navigate through the pages.
Show the cover page on the first page during double-page mode.
docViewer.webViewerSwitchSpreadMode(mode);| Name | Required | Type | Description |
|---|---|---|---|
| mode | yes | number | Display Modes Parameter, Single Page: 0, Two-up Page: 1, Book Mode: 2 |
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.
docViewer.requestFullScreenMode();