PDF Gallery Viewer

Description

PDF Gallery Viewer allows you to easily embed PDF galleries with live previews. It uses PDF.js to render the first page of each PDF directly in the browser, without relying on server-side libraries like Imagick. Each item includes a customizable title and a “View” button that opens the PDF in a modal viewer.

The layout is responsive and adapts from a multi-column grid to a single-column stack on smaller screens.

Key Features:

  • Live thumbnail of first PDF page (via PDF.js)
  • Responsive layouts (Grid, List, or Slider)
  • Modal viewer with zoom, navigation, and download
  • Gutenberg block with layout selector and drag-and-drop file integration
  • Tooltip + truncation for long titles
  • Dynamic shortcode generation by category, tag, or post

Usage

Basic usage:

[pdf_gallery url=”https://example.com/doc.pdf” title=”Document Title”]

Multiple items in a container:

[pdf_gallery_container layout=”grid”]
[pdf_gallery url=”…” title=”…”]
[pdf_gallery url=”…” title=”…”]
[/pdf_gallery_container]

Dynamic by category:

[pdf_gallery_container category=”brochures” layout=”slider”]

Screenshots

  • Responsive gallery grid layout
  • Modal viewer with zoom and navigation controls
  • Slider layout (Swiper.js)
  • Gutenberg block editor
  • Tooltip and truncated titles

Blocks

This plugin provides 1 block.

  • PDF Gallery (Multiplo) Inserisci una galleria PDF con più documenti.

Installation

  1. Upload the plugin to /wp-content/plugins/pdf-gallery-viewer/
  2. Activate it via the WordPress Plugins menu
  3. Use the [pdf_gallery] or [pdf_gallery_container] shortcodes in posts or pages

FAQ

Does this plugin require Imagick?

No. Previews are generated client-side using PDF.js.

Will this work on mobile?

Yes, all layouts and the modal are responsive.

Can I add multiple PDFs?

Yes, using either multiple shortcodes or the Gutenberg block.

Reviews

May 2, 2025
I’ve tried several PDF gallery plugins, but PDF Gallery Viewer stands out for its simplicity and modern design. The real-time thumbnail previews using PDF.js are fast and accurate, and the Gutenberg block integration is seamless. I especially love the layout options—grid, list, and slider—which make it super flexible for different use cases. No server-side dependencies, fully responsive, and easy to use.Highly recommended for anyone who wants a professional and efficient PDF gallery on their WordPress site!
Read all 1 review

Contributors & Developers

“PDF Gallery Viewer” is open source software. The following people have contributed to this plugin.

Contributors

Translate “PDF Gallery Viewer” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.3.0

  • Added dynamic gallery support by category, tag, and post ID
  • Added layout selector: Grid, List, Slider
  • Integrated Swiper.js for modern carousel layout
  • Added title truncation and tooltips
  • Improved shortcode output and styling

1.2.1

  • Integrated Font Awesome for icons

1.2.0

  • Removed Imagick dependency
  • Live thumbnail previews using PDF.js
  • Modal viewer with zoom, navigation, and download
  • Initial Gutenberg block with visual editing

1.0.0

  • Initial release