ACS PDF Slide Viewer
Embed uploaded PDF files as fitted slide viewers with previous/next controls, zoom controls, carousel playback, and optional downloads.
Install in
ACS PDF Slide Viewer adds a lightweight block for embedding PDF slide decks in posts and pages.
Upload or choose a PDF in the block editor, set the number of pages, and display it as a fitted slide viewer. Visitors can move forward and backward, zoom in or out, optionally use carousel playback, and download the PDF if you enable the download link.
The front end uses vanilla JavaScript with bundled PDF.js rendering. It does not use jQuery, external CDNs, remote APIs, tracking, or third-party services.
PDF.js 6.0.227 is bundled under the Apache License 2.0. The bundled files are loaded from this plugin directory on the same WordPress site. The original human-readable source is available from the Mozilla PDF.js project:
https://github.com/mozilla/pdf.js
https://www.npmjs.com/package/pdfjs-dist/v/6.0.227
Features
- PDF upload/selection from the block editor.
- Automatic PDF aspect ratio fitting with manual presets for widescreen, standard, and A4 PDFs.
- Previous and next slide controls.
- Zoom in, zoom out, and fit controls.
- Optional carousel playback.
- Optional PDF download link.
- Lightweight vanilla JavaScript front end.
- Classic Editor shortcode support.
Shortcode
You can also embed a PDF with:
[acs_pdf_slide_viewer url="https://example.com/slides.pdf" pages="8" title="My slides" aspect_ratio="16 / 9" download="true"]
Need help installing or customizing this plugin, or a website built around it? See our WordPress website development service: https://acs-developer.com/developer-website-service/?utm_source=wporg&utm_medium=readme&utm_campaign=acs-pdf-slide-viewer
日本語: 導入・カスタマイズ・サイト制作のご相談も上記ページで受け付けています。
Written by Joobi from the project's own listing. See the source page
1.0.9
- Fixed: the [acs_pdf_slide_viewer] shortcode now loads the viewer script and stylesheet, so shortcode embeds no longer stay on “Loading PDF…” (notably on block themes).
1.0.8
- Japanese translation completed: the plugin description and the remaining strings are now translated.
- The viewer’s loading and error messages can now be translated.
1.0.7
- Added a “Write a review” link to this plugin’s own row on the Plugins screen. This plugin has no settings screen of its own, so no admin notice is displayed anywhere
- Added a link to the WordPress.org review page in the readme FAQ
- No functional change
1.0.6
- Bundled the Japanese translation (ja.po/.mo and the editor JSON). The interface switches automatically when WordPress is set to Japanese.
- No functional change.
1.0.5
- Synchronized plugin and block version metadata for the WordPress.org release.
- Renamed the main plugin class with the unique ACSPSV prefix. No behavior changes.
1.0.4
- Internal refactor: renamed function and constant prefixes to a more unique form (acspsv_ / ACSPSV_). No behavior changes.
1.0.3
- Replaced native iframe PDF display with bundled PDF.js canvas rendering.
- Added zoom controls.
- Improved slide fitting so one full PDF page is visible by default on mobile and desktop.
1.0.2
- Removed the separate start button so PDF slides display immediately.
- Improved mobile slide framing so the full slide width is easier to view on small screens.
1.0.1
- Improved block rendering compatibility by registering the PHP render callback explicitly.
1.0.0
- Initial release.
Follow this listing's changes (Atom feed)