ACS PDF Slide Viewer
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"]
