PDF Embedder – Scrollable
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:
- https://github.com/mozilla/pdf.js
PDF.js is licensed under Apache License 2.0.
License
This plugin is licensed under GPL-3.0.
Source Code
The minified JavaScript libraries used in this plugin are compressed for performance. The original, human-readable source code for these libraries can be found at the following locations:
- pdf.js: GitHub Repository – Mozilla pdf.js
- pdf.worker.js: GitHub Repository – Mozilla pdf.worker.js
If you would like to review or contribute to the development of these libraries, please refer to the repositories above. Any modifications made to these libraries in this plugin will be documented in future versions of the plugin.
Additionally, the source code for the plugin itself is available on our GitHub repository at: – Plugin Source Code: GitHub – Aurorbyte PDF Embedder
We welcome contributions and feedback from the community. Please submit any pull requests or issues directly to the GitHub repository above.