PDF Embedder - Scrollable allows you to embed PDF files into WordPress pages and posts using a lightweight and scrollable PDF viewer powered by Mozilla PDF.js.
Unlike iframe-based PDF embeds, this plugin provides a clean viewing experience without browser toolbars, sidebars, or unnecessary margins.
Features
- Scrollable PDF viewer
- Responsive and mobile-friendly
- Custom scale support
- Lazy loading support
- Dark mode support
- Start from custom page
- Custom loader spinner
- Relative and absolute PDF URL support
- Multiple PDF embeds on same page
- Lightweight and fast
- Powered by Mozilla PDF.js
Shortcode
Basic Example:
[pes_pdf_scrollable_embed url="/wp-content/uploads/sample.pdf"]
Advanced Example:
[pes_pdf_scrollable_embed
url="/wp-content/uploads/sample.pdf"
scale="2"
height="100vh"
toolbar="true"
download="false"
zoom="true"
loader="spinner"
start-page="5"
lazy-load="true"
dark-mode="true"]
Shortcode Parameters
- url
- scale
- width
- height
- max-width
- max-height
- toolbar
- download
- zoom
- loader
- start-page
- lazy-load
- dark-mode
PDF.js Source Code
This plugin uses Mozilla PDF.js library.
Original uncompressed source code is available here:
PDF.js is licensed under Apache License 2.0.