PDF Embedder – Scrollable

Beskrivelse

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:

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.

Installasjon

  1. Upload the plugin files to the /wp-content/plugins/pdf-embedder-scrollable directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Use the shortcode [pes_pdf_scrollable_embed url="your-pdf-url"] to embed PDFs in your posts or pages.

Ofte stilte spørsmål

Can I use relative PDF URLs?

Yes.

Example:

[pes_pdf_scrollable_embed url=»/wp-content/uploads/sample.pdf» scale=»1.5″ width=»100%» height=»100%» max-width=»800px» max-height=»90vh»]`.

Can I embed multiple PDFs on same page?

Yes.

Does it support mobile devices?

Yes.

Does it use iframe?

No. It uses Mozilla PDF.js rendering.

Vurderinger

Det er ingen omtaler av denne utvidelsen.

Bidragsytere og utviklere

«PDF Embedder – Scrollable» er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen:

Bidragsytere

Endringslogg

1.3.0

  • Added lazy loading support
  • Added dark mode support
  • Added custom loader spinner
  • Added start-page support
  • Added mobile optimization
  • Improved rendering performance
  • Improved error handling
  • Improved URL validation
  • Updated plugin architecture
  • Added local PDF.js support
  • Removed remote CDN dependency

1.2.0

  • Improved plugin structure
  • Added render abstraction
  • Added validation helpers
  • Added safer enqueue handling

1.1.0

  • Fixed various security issues.
  • Improved handling of relative URLs in shortcode.
  • Updated plugin license to GPL-3.0 to ensure compatibility with third-party libraries.
  • Added links to the human-readable source code for the minified JavaScript files used in the plugin.

1.0

  • Initial release.