PHPackages                             kleisli/fusionfiles-pdf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. kleisli/fusionfiles-pdf

ActiveNeos-package[PDF &amp; Document Generation](/categories/documents)

kleisli/fusionfiles-pdf
=======================

Generate pdf files with Neos.Fusion using wkhtmltopdf

1.1.2(7mo ago)02PHP

Since Apr 26Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/Kleisli/FusionFiles.Pdf)[ Packagist](https://packagist.org/packages/kleisli/fusionfiles-pdf)[ RSS](/packages/kleisli-fusionfiles-pdf/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

Kleisli.FusionFiles.Pdf
=======================

[](#kleislifusionfilespdf)

Generate pdf files with Neos.Fusion using wkhtmltopdf

Requirements
------------

[](#requirements)

- [wkhtmltopdf](https://github.com/wkhtmltopdf/wkhtmltopdf)

Fusion Document
---------------

[](#fusion-document)

To render a node `My.DocumentType` as pdf, create a fusion prototype `My.DocumentType.Pdf` that extends `Kleisli.FusionFiles:File.Pdf`.

### Properties of `Kleisli.FusionFiles:File.Pdf`

[](#properties-of-kleislifusionfilesfilepdf)

- `showAsHtml`, boolean, to debug the response, default = false
- `disposition`, either 'inline' (default value, to display the pdf file in the brower) or 'attachment' (to download the pdf file directly)
- `filename`, string, with disposition='attachment' this defines the filename of the file to be downlaoded
- `cssRessourcePaths`, Neos.Fusion:DataStructure, the paths to the css files needed to render the html for the pdf
- `htmlContent`, Neos.Fusion:DataStructure with fixed keys
    - `header`, string, the html code to be repeated on top of every page of the pdf document
    - `body`, string, the html code containing the content
    - `footer`, string, the html code to be repeated in the bottom of every page of the pdf document

### Configuration

[](#configuration)

```
Kleisli:
    FusionFiles:
        Pdf:
            pathToWkhtmltopdf: '/usr/local/bin/wkhtmltopdf'

```

Fusion Content
--------------

[](#fusion-content)

Rendering a Document node as Pdf using `Neos.Neos:ContentCollection` displays the Content nodes with the same Markup as for the HTML web page.

### pdf specific markup for content

[](#pdf-specific-markup-for-content)

While the same markup might be fine for many content elements, there might also be elements (especially elements relying on javascript), that need a pdf specific markup. This can be achieved by just creating a prototype with appended `.Pdf`, e.g. to change markup for `My.ContentType` in the pdf, create `My.ContentType.Pdf`

### hide content in pdf or render in pdf only

[](#hide-content-in-pdf-or-render-in-pdf-only)

To render content elements in pdf only and hide them in other formats, or skip them in the pdf document, create a node property `pdfVisibility` and set it to either 'hideInPdf' or 'pdfOnly'.

Or add the mixin `Kleisli.FusionFiles.Pdf:Mixin.PdfVisibility` to the node type to be able to define visibility in the backend.

Kudos
-----

[](#kudos)

The development of this package has significantly been funded by [Profolio](https://www.profolio.ch/) - a digital platform for career choice &amp; career counseling

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance63

Regular maintenance activity

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~295 days

Total

4

Last Release

225d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0c4c2e910a7d2e4fd8cf1e4a2392d2c54622ae5ab12e8b338422d404fa8f21a?d=identicon)[kleisli](/maintainers/kleisli)

---

Top Contributors

[![Kleisli](https://avatars.githubusercontent.com/u/18674199?v=4)](https://github.com/Kleisli "Kleisli (8 commits)")

---

Tags

neos-cmsneos-flowneos-fusion

### Embed Badge

![Health badge](/badges/kleisli-fusionfiles-pdf/health.svg)

```
[![Health](https://phpackages.com/badges/kleisli-fusionfiles-pdf/health.svg)](https://phpackages.com/packages/kleisli-fusionfiles-pdf)
```

###  Alternatives

[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[knplabs/knp-snappy-bundle

Easily create PDF and images in Symfony by converting Twig/HTML templates.

1.2k31.8M49](/packages/knplabs-knp-snappy-bundle)[endroid/pdf

Endroid PDF

3545.4k](/packages/endroid-pdf)[mvlabs/mvlabs-snappy

MvlabsSnappy is a Zend Framework and Laminas module that allow easy to thumbnail, snapshot or PDF generation from a url or a html page using Snappy PHP wrapper for the wkhtmltopdf/wkhtmltoimage conversion utility.

2453.6k](/packages/mvlabs-mvlabs-snappy)[siphoc/pdf-bundle

Siphoc PDF Bundle for Symfony2

1442.4k](/packages/siphoc-pdf-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
