Download the PHP package anubit/pageflipper without Composer
On this page you can find all versions of the php package anubit/pageflipper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anubit/pageflipper
More information about anubit/pageflipper
Files in anubit/pageflipper
Package pageflipper
Short Description PageFlipper - Content element that displays FAL PDFs as a responsive collection of lazy-loaded flipbooks (PDF.js + StPageFlip).
License GPL-2.0-or-later
Informations about the package pageflipper
PageFlipper
TYPO3 v12–v14 content element that displays PDFs from FAL as a responsive grid and opens each one as a page-turning flipbook in an accessible modal viewer.
- PDF rendering with PDF.js, page-turn effect with StPageFlip, both bundled locally
- No Extbase, no jQuery, no CDN
- Viewer code and libraries are loaded only when a visitor opens a flipbook
- Covers: custom image per PDF, server-side PDF thumbnail, or placeholder
Installation
Include the TypoScript:
- TYPO3 v13/v14: add the site set PageFlipper (
anubit/pageflipper) to your site (Site Management > Sites). It depends ontypo3/fluid-styled-content. - TYPO3 v12: include the static TypoScript PageFlipper in your site template.
Use either the site set or the static include, not both. The content element is available in the new content element wizard under "Typical page content".
Configuration
Content element
| Option | Default |
|---|---|
| PDF files (sortable; title/description from file metadata, overridable per file) | – |
| Cover image per PDF (optional) | – |
| View: book covers / square tiles / cards | book covers |
| Columns: 1–4 (fewer automatically when the element is narrow: phones, sidebars, narrow layout columns) | 3 |
| Maximum width: full width / large / medium / small | full width |
| Show file titles | on |
| Page mode: single / double | double |
| Show navigation | on |
| Enable fullscreen | on |
| Enable zoom | on |
| Allow PDF download | on |
Site settings / TypoScript constants
With the site set, these values are editable as site settings (Site Management > Settings, category "PageFlipper"). With the static include, set them as TypoScript constants:
Width and columns
The grid adapts to the width of the element itself (CSS container queries), not to the viewport, so it also works in sidebars and narrow layout columns: 2 columns from 480px, 3 from 720px, 4 from 960px element width (each only if configured).
"Full width" uses whatever width the page layout gives the content element. The other presets cap the grid; change their values in your site CSS if needed:
Templates and styling
Override Templates/PageFlipper.html or the partials in Partials/PageFlipper/ via the
view paths above. The default CSS only uses .pageflipper* classes and exposes
custom properties such as --pageflipper-gap, --pageflipper-spacing-after (space below the element, default 3rem), --pageflipper-title-size and
--pageflipper-viewer-background.
Third-party libraries
Bundled in Resources/Public/JavaScript/Contrib/. Each ships with its license file.
| Library | Version | Author | License | Used for |
|---|---|---|---|---|
PDF.js (pdfjs-dist, legacy build) |
6.3.289 | Mozilla | Apache-2.0 | Rendering the PDF pages |
StPageFlip (page-flip) |
2.0.7 | Nodlik | MIT | Page-turn effect |
PDF.js also brings its standard fonts (Foxit, Liberation) and WebAssembly image/colour
decoders (OpenJPEG, JBIG2, QCMS) under their own licenses; see Contrib/pdfjs/standard_fonts/
and Contrib/pdfjs/wasm/.
Development
Architecture, workarounds, library updates and upgrade notes: Documentation/Developer.md.
All versions of pageflipper with dependencies
typo3/cms-core Version ^12.4 || ^13.4 || ^14.0
typo3/cms-fluid Version ^12.4 || ^13.4 || ^14.0
typo3/cms-frontend Version ^12.4 || ^13.4 || ^14.0