Some test text!

Hamburger Icon

Web / Guides / Reader mode

Reader mode

Reader mode, also known as reading or reflow mode, makes the document more flexible and easier to read. Apryse is able to extract the reflowable layout of each page in a PDF document as HTML format, and then combine them into one single view. It also supports zooming to increase the font size and page navigation to jump to a particular page.

Reader mode

How to enable Reader mode feature

Reader mode is available from WebViewer v7.1, and this feature is disabled by default currently. To enable it, you need to set the constructor option fullAPI: true, and you also need to enable the reader mode button in the UI.

For example:

    path: '...',
    initialDoc: '...',
    fullAPI: true
  .then(instance => {


How to get into Reader mode in WebViewer

Click the View Controls button, then under Page Transition section click the Reader button.

Reader mode

Loading reader mode outside of WebViewer's default UI

Apryse implements reader mode using the webviewer-reading-mode module in the default UI. However this module can be loaded independently outside of WebViewer's UI as well. It takes a PDFDoc object, PDFNet and it can display the document in reader mode in the DOM element you specify.

For example:

<!DOCTYPE html>

  <meta charset="utf-8">

  <script src="./lib/core/webviewer-core.min.js"></script>
  <script src="./lib/core/pdf/PDFNet.js"></script>
  <script src="" crossorigin></script>
  <script src="" crossorigin></script>
  <script src=""></script>
  <script src="./lib/webviewer-reading-mode.js"></script>

  <div id="wv-reader-mode" style="height: 500px;width: 1000px;border: 1px solid grey;"></div>

    const wvReadingMode = WebViewerReadingMode.initialize(PDFNet);

    PDFNet.initialize(undefined, 'ems').then(() => {
      const main = async () => {
        try {
              pageNumberUpdateHandler: (pageNum) => {
                console.log(`Current page number: ${pageNum}`);
        } catch (err) {


The module also supports APIs like goToPage, setZoom, etc. More details about the APIs can be found here.

Have questions? Connect with our experts on Discord.