Title: PDF Gallery Viewer
Author: Sergio Comella
Published: <strong>އޭޕްރިލް 22, 2025</strong>
Last modified: ޖުލައި 3, 2026

---

Search plugins

![](https://ps.w.org/pdf-gallery-viewer/assets/banner-772x250.png?rev=3285215)

![](https://ps.w.org/pdf-gallery-viewer/assets/icon-128x128.png?rev=3285216)

# PDF Gallery Viewer

 By [Sergio Comella](https://profiles.wordpress.org/panezio923/)

[Download](https://downloads.wordpress.org/plugin/pdf-gallery-viewer.1.8.1.zip)

 * [Details](https://dv.wordpress.org/plugins/pdf-gallery-viewer/#description)
 * [Reviews](https://dv.wordpress.org/plugins/pdf-gallery-viewer/#reviews)
 *  [Installation](https://dv.wordpress.org/plugins/pdf-gallery-viewer/#installation)
 * [Development](https://dv.wordpress.org/plugins/pdf-gallery-viewer/#developers)

 [Support](https://wordpress.org/support/plugin/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) — lazy-loaded via IntersectionObserver
 * 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
 * Sorting UI (Title / Filename / Manual drag & drop)
 * Manual ordering with FIFO/LIFO behavior for newly added items
 * Zero external requests — all assets (PDF.js, Font Awesome, Swiper.js) served 
   locally
 * Assets only load on pages that contain a gallery
 * Settings page (Settings > PDF Gallery Viewer) for site-wide accent color, surface
   color, text color, corner radius, and default layout
 * Per-gallery accent color override via the `accent_color` shortcode/block attribute

### 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]

Sorting / ordering:

[pdf_gallery_container layout=”grid” order_by=”title” order=”asc” ui=”1″]
 … [/pdf_gallery_container]

Manual ordering (UI drag & drop) with FIFO/LIFO for newly added items:

[pdf_gallery_container id=”my-gallery” layout=”grid” order_by=”manual” manual_mode
=”fifo” ui=”1″]
 … [/pdf_gallery_container]

IMPORTANT: Manual ordering is managed by admins and saved server-side (post meta)
so the order is the same for all visitors.
 For reliable persistence, always set
a stable id=”…” on each container (the Gutenberg block does this automatically).

Dynamic by category:

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

Per-gallery accent color (overrides the site-wide default set in Settings > PDF 
Gallery Viewer):

[pdf_gallery_container layout=”grid” accent_color=”#ff6600″]
 … [/pdf_gallery_container]

## Screenshots

[⌊Admin PDF list — manage, edit, and delete gallery items⌉⌊Admin PDF list — manage,
edit, and delete gallery items⌉[

Admin PDF list — manage, edit, and delete gallery items

[⌊Responsive gallery grid layout⌉⌊Responsive gallery grid layout⌉[

Responsive gallery grid layout

[⌊Gutenberg block editor — inserting a PDF Gallery block⌉⌊Gutenberg block editor—
inserting a PDF Gallery block⌉[

Gutenberg block editor — inserting a PDF Gallery block

[⌊Modal viewer with zoom, navigation, and download controls⌉⌊Modal viewer with zoom,
navigation, and download controls⌉[

Modal viewer with zoom, navigation, and download controls

[⌊Slider layout (Swiper.js)⌉⌊Slider layout (Swiper.js)⌉[

Slider layout (Swiper.js)

[⌊Tooltip and truncation for long titles⌉⌊Tooltip and truncation for long titles⌉[

Tooltip and truncation for long 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

![](https://secure.gravatar.com/avatar/1d6165ee24a9653a2355a6d6cddc348b29ffc0a42893579d4ae83f10ad449be1?
s=60&d=retro&r=g)

### 󠀁[Very nice gallery for PDFs](https://wordpress.org/support/topic/very-nice-gallery-for-pdfs/)󠁿

 [ghartwig](https://profiles.wordpress.org/ghartwig/) ޖުލައި 1, 2026 1 reply

This has worked very well for us. It’s great to not have to manually create thumbnails
for a PDF gallery. They’re generated on the fly and look good. It works OK with 
the block editor so you don’t have to use shortcodes, though the block editor interface
is not WYSIWYG, it gets the job done. I’d like some more customizing options but
maybe they will come in the future.

![](https://secure.gravatar.com/avatar/989ff1e7ea92563579ac5da2ecfd1c56f82003b6c1ab0eb547a04701da84fa2e?
s=60&d=retro&r=g)

### 󠀁[Clean, lightweight, and works beautifully!](https://wordpress.org/support/topic/clean-lightweight-and-works-beautifully/)󠁿

 [manygold](https://profiles.wordpress.org/manygold/) މެއި 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 2 reviews ](https://wordpress.org/support/plugin/pdf-gallery-viewer/reviews/)

## Contributors & Developers

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

Contributors

 *   [ Sergio Comella ](https://profiles.wordpress.org/panezio923/)

[Translate “PDF Gallery Viewer” into your language.](https://translate.wordpress.org/projects/wp-plugins/pdf-gallery-viewer)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/pdf-gallery-viewer/),
check out the [SVN repository](https://plugins.svn.wordpress.org/pdf-gallery-viewer/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/pdf-gallery-viewer/)
by [RSS](https://plugins.trac.wordpress.org/log/pdf-gallery-viewer/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.8.1

 * Confirmed compatibility with WordPress 7.0
 * Fixed: screenshot captions in the plugin listing were shifted and no longer matched
   the actual screenshots; added the missing 6th screenshot (tooltip/truncation 
   demo)

#### 1.8.0

 * Added a Settings page (Settings > PDF Gallery Viewer) for site-wide accent color,
   surface color, text color, and corner radius
 * Added a default layout setting (grid/list/slider)
 * Added a per-gallery `accent_color` override, available as a shortcode attribute
   and a Gutenberg block color control
 * Manual drag & drop ordering is now fully functional: dragging reorders items,“
   Salva ordine” saves the order server-side, and it now correctly persists across
   page reloads
 * Fixed: saved manual order was being ignored on reload for galleries built with
   the Gutenberg block
 * Fixed: button hover color and icon color did not follow the accent/text color
   settings (were hardcoded)
 * Fixed: block-presence check used the wrong block name and never matched (asset
   loading already worked via the shortcode check, so no user-facing effect)

#### 1.7.1

 * Added missing Text Domain header for translations
 * Removed unused internal global variable
 * Documented why manual drag & drop ordering controls remain disabled (client-side
   wiring incomplete)

#### 1.7.0

 * Performance: thumbnails now lazy-loaded via IntersectionObserver (renders only
   when item enters viewport)
 * Performance: all scripts and styles skipped on pages without a gallery
 * Privacy: Font Awesome now served locally — no CDN requests
 * Privacy: PDF.js worker now served locally — no CDN requests
 * All external network dependencies removed

#### 1.6.3

 * Fixed: disabled UI order controls

#### 1.6.2

 * Added filename visibility in Gutenberg block selection list
 * Added numeric ordering for PDFs (admin-defined, persistent)
 * Removed FIFO/LIFO ordering logic
 * Fixed manual ordering issues in block editor
 * Fixed frontend sorting UI buttons not working
 * Improved list view readability (title + actions layout)
 * General UI/UX refinements and accessibility improvements

#### 1.5.0

 * Added sorting UI (Title / Filename / Manual)
 * Added admin-managed manual ordering via drag & drop (saved server-side, same 
   order for everyone)
 * Added FIFO/LIFO option for newly added items when manual ordering is enabled

#### 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

## Meta

 *  Version **1.8.1**
 *  Last updated **7 hours ago**
 *  Active installations **100+**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/pdf-gallery-viewer/)
 * Tags
 * [gallery](https://dv.wordpress.org/plugins/tags/gallery/)[javascript](https://dv.wordpress.org/plugins/tags/javascript/)
   [modal](https://dv.wordpress.org/plugins/tags/modal/)[pdf](https://dv.wordpress.org/plugins/tags/pdf/)
   [responsive](https://dv.wordpress.org/plugins/tags/responsive/)
 *  [Advanced View](https://dv.wordpress.org/plugins/pdf-gallery-viewer/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/pdf-gallery-viewer/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/pdf-gallery-viewer/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/pdf-gallery-viewer/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/pdf-gallery-viewer/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/pdf-gallery-viewer/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/pdf-gallery-viewer/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/pdf-gallery-viewer/reviews/)

## Contributors

 *   [ Sergio Comella ](https://profiles.wordpress.org/panezio923/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/pdf-gallery-viewer/)