Quillvane PDF Flipbook Viewer

By Yasir Altaf Zargar

0+ active installationsVersion 1.3.3

Show any PDF as a clean, mobile-friendly flipbook. Shortcode, block and Elementor widget.

Description

Quillvane PDF Flipbook Viewer turns any PDF into a page-turning flipbook that readers can browse right on your site. No downloads, no outside services, nothing to set up. Pick a PDF from the Media Library and publish.

It works with the block editor, the Classic Editor, Elementor and shortcodes. On phones it looks as good as on a desktop.

Good for reports, magazines, brochures, catalogues, menus, newsletters, e-books and anything else you already have as a PDF.

Reading experience

  • Two-page spreads on wide screens, one page on phones (or force one or two pages).
  • Swipe, arrows or keyboard to turn pages, with a short slide animation.
  • Full screen reading. Tap the page or press “Full screen”. Close with the Close button, Esc or the phone’s Back button.
  • Zoom up to 3x with panning, and pinch to zoom on phones and tablets.
  • Thumbnails of every page to jump around.
  • Search inside the PDF, with highlights and a list of matching pages.
  • Clickable links: web links open in a new tab, internal links jump to the page.

Publishing options

  • Popup mode: show the cover or a button on the page, and the flipbook opens full screen.
  • Start page and deep links to any page (for example #spf-1-p5). The address updates as readers turn pages.
  • Preview mode: show only the first few pages.
  • Optional download button.
  • Several flipbooks on one page.
  • Custom colours under Settings > PDF Flipbook.

Fast, private and accessible

  • Lazy loading: the PDF only loads when the reader scrolls near it.
  • No outside requests: PDF.js is bundled with the plugin. No tracking, no accounts, no external services.
  • Accessible: page text is available to screen readers, every button has a label, and the whole viewer works with a keyboard.
  • Works without JavaScript: readers (and search engines) get a plain link to the PDF.
  • Older browsers automatically get a legacy PDF.js build.

Analytics

If your site already runs Google Analytics 4 or Google Tag Manager, the viewer sends events for open, page turn, search, link click and download. It also fires a DOM event you can use in custom code.

How to use

  • Block editor: add the “PDF Flipbook” block and choose a PDF.
  • Elementor: drag the “PDF Flipbook” widget onto the page.
  • Classic Editor: click “Add PDF Flipbook” next to “Add Media” and pick a PDF.
  • Shortcode: [quillvane_pdf_flipbook id="123" title="Annual Report"] or [quillvane_pdf_flipbook url="https://example.com/file.pdf" download="no"]

Third-party code

PDF.js by Mozilla, Apache License 2.0, shipped as the official minified builds in vendor/pdfjs/:

  • 4.10.38 (current browsers), loaded as an ES module through assets/pdfjs-loader.js. The .mjs files are shipped with a .js extension so every web server sends the right content type. Source: https://github.com/mozilla/pdf.js/tree/v4.10.38 , build: https://www.npmjs.com/package/pdfjs-dist/v/4.10.38
  • 2.16.105 legacy build (older browsers without ES modules or Promise.withResolvers). Source: https://github.com/mozilla/pdf.js/tree/v2.16.105 , build: https://www.npmjs.com/package/pdfjs-dist/v/2.16.105

PDF.js runs with isEvalSupported: false in both cases. The plugin’s own JavaScript and CSS (assets/, blocks/) are not minified and need no build step.

Installation

  1. In your WordPress admin, go to Plugins > Add New, search for “Quillvane PDF Flipbook Viewer” and click Install Now, then Activate.
  2. Edit a page or post and add the PDF Flipbook block (or the Elementor widget, the Classic Editor button, or the shortcode).
  3. Choose a PDF from your Media Library and publish.
  4. Optional: change the colours under Settings > PDF Flipbook.

To install by hand, upload the quillvane-pdf-flipbook-viewer folder to /wp-content/plugins/ and activate it on the Plugins screen.

FAQ

Does it work with my editor?

Yes: the block editor (Gutenberg), the Classic Editor (“Add PDF Flipbook” button), Elementor (widget) and anything that runs shortcodes.

Does it send data anywhere?

No. PDF.js is bundled with the plugin, nothing is loaded from other servers, and the plugin stores only its two colour settings. Analytics events are only sent if your site already runs Google Analytics 4 or Tag Manager.

Can I stop people from downloading the PDF?

You can hide the download button with download="no", but the PDF file itself stays public at its address, as with any file in the Media Library.

My PDF from another website does not load.

Browsers only allow it when that website permits it (CORS). Upload the PDF to your own Media Library instead.

Does it work on older phones and browsers?

Yes. Modern browsers use the current PDF.js; older ones (for example Chrome before 92 or Safari before 15) automatically get a legacy build.

Screenshots

Changelog

1.3.3

  • Renamed to Quillvane PDF Flipbook Viewer (slug quillvane-pdf-flipbook-viewer). Shortcode is now [quillvane_pdf_flipbook].

1.3.0

  • All PHP functions, options, constants and script handles use the unique quillvane_pdf_flipbook prefix.
  • PDF.js updated to 4.10.38 for current browsers (fixes CVE-2024-4367 in PDF.js itself); older browsers keep the 2.16 legacy build.

1.2.1

  • Older browsers (e.g. Chrome before 92, Safari before 15) now load a legacy PDF.js build automatically instead of getting stuck on “Loading”.
  • Security: PDF.js runs with isEvalSupported off, which blocks CVE-2024-4367.
  • Phones: the Back button closes full screen instead of leaving the page; pinching over panels no longer zooms the website; the page re-fits after the on-screen keyboard closes.

1.2.0

  • Screen-reader text for every page, pinch to zoom, fallback link to the PDF when JavaScript is off or the PDF cannot load.

1.1.0

  • Search, thumbnails, zoom, clickable PDF links, popup mode, start page, page layout, preview limit, deep links, analytics events.
  • Full screen sizes the page to fit the window exactly.

1.0.0

  • First release.