NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3444 most downloaded on Packagist
PHP library allowing PDF generation from an url or a html page. Wrapper for Kozea/WeasyPrint.
Latest stable
2.7.0
Last release 5 months ago
03 Jun 2026
Release timing varies
gaps range from 8 days to 12 months
Nearly every release is documented
notes for 23 of 23 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
23 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Support WeasyPrint 69.0 new --output-intent option
--output-intent optionFix PHAR deserialization via the output filename (CVE-2023-28115 case-insensitive bypass): the output path is now validated against a scheme allow-lis…
http, https by default, configurable via the new $allowedSchemes constructor argument)removeTemporaryFiles() now only deletes files located inside the temporary folderphar:// checkYour coding agent can read these notes before it upgrades. Set up the MCP server →
Update symfony/process minimal version to mitigate CVE-2026-24739
buildCommand() now verifies the binary is executable on the unescaped path and shell-escapes it before usesymfony/process minimal version to mitigate CVE-2026-24739Support WeasyPrint options (--info, --quiet, --verbose, --debug, --version, --no-http-redirects, --fail-on-http-errors)
--info, --quiet, --verbose, --debug, --version, --no-http-redirects, --fail-on-http-errors)Support WeasyPrint 68.0 new --attachment-relationship and --xmp-metadata options
--attachment-relationship and --xmp-metadata optionsSupport WeasyPrint 67.0 new --allowed-protocols option
--allowed-protocols option### Added - Support PHP 8.5 - More tests
Support WeasyPrint 66.0 new --pdf-tags option
--pdf-tags optionUpdate symfony/process minimal version to mitigate CVE-2024-51736
--timeout option to the WeasyPrint command-line call by default. This improves consistency with the internal process timeout already applied by Symfony Process. If you're running WeasyPrint inside a worker, queue, or other timeout-managed environment, you can disable it using $pdf->disableTimeout() or $pdf->setTimeout(null). (#15)disableTimeout() method to easily disable the new CLI timeout behaviorsymfony/process minimal version to mitigate CVE-2024-51736Support WeasyPrint 63.0 new srgb option
srgb option--srgb optionAdded support for Symfony 7.0 and PHP 8.3
Support WeasyPrint 60.0 new option
Support WeasyPrint 59.0b1 new option
This is a security release: php-weasyprint is based on knplabs/knp-snappy, CVE-2023-28115 has been issued for it on 2023-03-17
This is a security release: php-weasyprint is based on knplabs/knp-snappy, CVE-2023-28115 has been issued for it on 2023-03-17
Support WeasyPrint 58 new option (--pdf-forms)
### Fixed - Fix logging of errors
Fixed handling of repeatable options (attachment and stylesheet)
Support WeasyPrint 56 new options
Bump php, supports 8.2 by @stephpy in https://github.com/pontedilana/php-weasyprint/pull/6
Full Changelog: https://github.com/pontedilana/php-weasyprint/compare/0.11.0...0.12.0
Bump symfony/process up to ^6.0 and psr/log up to ^3.0 by @romainf in https://github.com/pontedilana/php-weasyprint/pull/3
Full Changelog: https://github.com/pontedilana/php-weasyprint/compare/0.10.1...0.11.0
Refactor tests to use onlyMethods()
onlyMethods()Removed --format option default value, this option was deprecated in WeasyPrint 53 and removed in WeasiPrint 54. If you still use WeasyPrint 52 or low…
Removed --format option default value, this option was deprecated in WeasyPrint 53 and removed in WeasiPrint 54.
If you still use WeasyPrint 52 or lower you can set this option back with ->setOption():
$weasyprint = new \Pontedilana\PhpWeasyPrint\Pdf('/usr/local/bin/weasyprint');
$weasyprint->setOption('format', 'pdf');
--format option in Pdf class which is deprecated in WeasyPrint 53 and removed in WeasyPrint 54### Added - First public release
One column per quarter.