WP Manifestindependent plugin directory
manifest / media / wp-pdf-katalog

PDF Blätterkatalog

Interaktiver PDF-Blätterkatalog mit Suche, Inhaltsverzeichnis, Doppelseiten-Ansicht und Blättereffekt. Mehrere Kataloge per Shortcode.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/michael-kanda/wp-pdf-katalog/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Interactive PDF catalog viewer with search, accordion TOC, double-page spreads and page flip effect. Multiple catalogs via CPT.

Description

PDF Blätterkatalog turns any PDF file into an interactive, browsable catalog directly on your WordPress site. Features include:

  • Double-page spread view with correct cover alignment (cover displayed alone, then proper left/right spreads)
  • Real-time search across table of contents and full PDF text content
  • Accordion table of contents with chapter navigation
  • Page flip animation for a realistic browsing experience
  • Zoom controls with fit-to-window
  • Fullscreen mode
  • Multiple catalogs via Custom Post Type – each with its own shortcode
  • Customizable colors (accent, background, text)
  • Lazy loading with HTTP Range Requests for fast initial page display

Installation

  1. Upload the pdf-katalog folder to /wp-content/plugins/.
  2. Download PDF.js v3.11.174 from https://mozilla.github.io/pdf.js/getting_started/#download and place pdf.min.js and pdf.worker.min.js into assets/lib/.
  3. Activate the plugin through the 'Plugins' menu in WordPress.
  4. Go to "PDF Kataloge" in the admin sidebar to create a new catalog.
  5. Upload your PDF and configure the table of contents (JSON format).
  6. Use the shortcode [pdf_katalog slug="your-slug"] on any page.

Frequently Asked Questions

How do I add a table of contents?

In the catalog editor, paste a JSON array in this format: [{"chapter":"Chapter Name","items":[{"title":"Section","page":6}]}]

Can I have multiple catalogs on one site?

Yes. Each catalog is a Custom Post Type entry with its own shortcode.

The catalog loads slowly – what can I do?

Make sure your server supports HTTP Range Requests (Apache/nginx do by default). The plugin uses lazy loading so only visible pages are fetched. For very large PDFs (100+ MB), consider optimizing the PDF file size first.

Changelog

3.1.0

  • Fixed double-page spread alignment: cover now displays alone, spreads are correctly paired
  • Added lazy loading via HTTP Range Requests for significantly faster initial load
  • Batched text extraction with requestIdleCallback to avoid UI blocking
  • Fixed all WordPress Coding Standards warnings (input sanitization, safe redirects)
  • Bundled PDF.js locally instead of loading from CDN
  • Added proper GPL license and readme.txt

3.0.0

  • Complete rewrite with multi-instance support via Custom Post Type
  • Added real-time PDF text search
  • Added customizable accent, background and text colors
  • Added migration helper from v2.x

Developed with ❤️ by Michael Kanda https://designare.at