plugin-icon

PDF Gallery Viewer

제작자: Sergio Comella·
A simple plugin that creates a responsive PDF gallery with live thumbnail previews and a modal PDF viewer.
평가
5
버전
1.8.1
활성화된 설치 항목
100
최근 업데이트일
Jul 3, 2026
PDF Gallery Viewer

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]

무료유료 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 7.0
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.