PDF Blätterkatalog
Interaktiver PDF-Blätterkatalog mit Suche, Inhaltsverzeichnis, Doppelseiten-Ansicht und Blättereffekt. Mehrere Kataloge per Shortcode.
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/michael-kanda/wp-pdf-katalog/archive/refs/heads/main.zipInteractive 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
- Upload the
pdf-katalogfolder to/wp-content/plugins/. - Download PDF.js v3.11.174 from https://mozilla.github.io/pdf.js/getting_started/#download and place
pdf.min.jsandpdf.worker.min.jsintoassets/lib/. - Activate the plugin through the 'Plugins' menu in WordPress.
- Go to "PDF Kataloge" in the admin sidebar to create a new catalog.
- Upload your PDF and configure the table of contents (JSON format).
- 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