pieceofcake2 / cakepdf
CakePHP 2 plugin for converting HTML to PDF with Dompdf, mPDF, TCPDF or wkhtmltopdf
Requires
- php: >=8.0
- composer/installers: ^1.0 || ^2.0
- pieceofcake2/cakephp: ^2.12
Requires (Dev)
- dompdf/dompdf: ^3.1
- mpdf/mpdf: ^8.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9.6
- pieceofcake2/app: ^2.2
- pieceofcake2/phpcs-cakephp2: ^1.1
- pieceofcake2/phpstan-cakephp2: ^1.0
- tecnickcom/tcpdf: ^6.10
Suggests
- dompdf/dompdf: When using DomPDF as engine.
Provides
None
Conflicts
None
Replaces
- ceeram/cakepdf: ^1.0
- friendsofcake/cakepdf: ^1.0
This package is auto-updated.
Last update: 2026-10-16 09:33:30 UTC
README
CakePdf converts HTML to PDF with Dompdf, mPDF, TCPDF or wkhtmltopdf. It renders controller
actions as PDF with PdfView and creates PDF files for email attachments or file storage.
This is a fork of FriendsOfCake/CakePdf 1.x for
pieceofcake2/cakephp.
Documentation
- Website: https://pieceofcake2.github.io/cakepdf/ (日本語: https://pieceofcake2.github.io/cakepdf/ja/)
- Markdown: docs/README.md (日本語: docs/ja/README.md) (for AI tools and offline reading)
The Markdown documentation is also included in the Composer package, in the plugin's directory: plugins/CakePdf/docs/README.md (the location depends on your installer-paths). Install the package with --dev if you only need it for development.
Requirements
- PHP 8.0+
- pieceofcake2/cakephp 2.12+
- One of dompdf/dompdf, mpdf/mpdf, tecnickcom/tcpdf or the wkhtmltopdf binary
- pdftk (optional, for encryption)
Each engine has its own license (LGPL or GPL) and maintenance status. See Engines and Licenses before you choose one.
Installation
composer require pieceofcake2/cakepdf
Contributing
See the contribution guidelines.
Origin
This package is a maintained fork of
FriendsOfCake/CakePdf (friendsofcake/cakepdf on
Packagist, last upstream version 1.0.3), originally by Ceeram. It is maintained for CakePHP 2 on
modern PHP by pieceofcake2. Changes from the original are listed
in the
commit history since the fork.
License
The MIT License. See LICENSE.