All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning. [3.0.0] Version 3.x supports DomPDF version 3.x. See the changelog in https://github.com/dompdf/dompdf/releases/tag/v3.0.0
The most notable change in laravel-dompdf are the changed defaults, to be more secure;
enable_remote
is nowfalse
by default. Change with caution.allowedRemoteHosts
andartifactPathValidation
are added the the config. Also, support for Laravel < 9 and PHP < 8.1 is dropped.
[2.2.0]
- Fix setOptions by @cesarreyes3 in #1040
- Bump dompdf minimum to 2.0.7 by @barryvdh
- @cesarreyes3 made their first contribution in #1040
Full Changelog: https://github.com/barryvdh/laravel-dompdf/compare/v2.1.1...v2.2.0
- Revert "Fix setOptions method" by @barryvdh in #1039
Full Changelog: https://github.com/barryvdh/laravel-dompdf/compare/v2.1.0...v2.1.1
- Convert phpunit by @barryvdh in #952
- ci: Use GitHub Actions V3 by @DannyvdSluijs in #990
- Fix named arguments when using facade by @erikn69 in #1002
- Update dompdf version as a dependancy by @AliSheikhDev in #967
- ci: Use GitHub Actions V4 by @erikn69 in #1003
- Fix phpstan analysis by @erikn69 in #972
- Fix setOptions method by @erikn69 in #974
- Small typo fix in dompdf config file by @ricklambrechts in #1004
- Upgrade to larastan/larastan by @parth391 in #1014
- Fixing "Upgrade to larastan/larastan" by @erikn69 in #1018
- Laravel 11 Support by @erikn69 in #1036
- Laravel 11.x Compatibility by @laravel-shift in #1037
- @DannyvdSluijs made their first contribution in #990
- @AliSheikhDev made their first contribution in #967
- @ricklambrechts made their first contribution in #1004
- @parth391 made their first contribution in #1014
- @laravel-shift made their first contribution in #1037
Full Changelog: https://github.com/barryvdh/laravel-dompdf/compare/v2.0.1...v2.0.2
Version 2 supports DomPDF 2.x
- Remove the deprecated class 'Barryvdh\DomPDF\Facade' Facade in favor of Barryvdh\DomPDF\Facade\Pdf
- Set default Facade to Pdf instead of PDF
- HTML5 parser option is deprecated, because this is always on.
orientation
option was never used. Removed in favor ofoptions.default_paper_orientation
- Upgraded to use dompdf/dompdf 2.x
setOption
to change only the specified option(s), instead of replace all options.- Magic methods to allow calls to Dompdf methods easier. (#892)
default_paper_orientation
option has been added to the defaults.- Add option to set public path (#890)
setOptions
is now deprecated. UsesetOption
instead.- Config
dompdf.defines
has been renamed todompdf.options
- Remove the deprecated class 'Barryvdh\DomPDF\Facade' Facade in favor of Barryvdh\DomPDF\Facade\Pdf
- Set default Facade to Pdf instead of PDF
- Upgraded to use dompdf/dompdf 2.x
setOption
to change only the specified option(s), instead of replace all options.- Magic methods to allow calls to Dompdf methods easier. (#892)
default_paper_orientation
option has been added to the defaults.- Add option to set public path (#890)
- HTML5 parser option is deprecated, because this is always on.
orientation
option was never used. Removed in favor ofoptions.default_paper_orientation
setOptions
is now deprecated. UsesetOption
instead.- Config
dompdf.defines
has been renamed todompdf.options
https://github.com/dompdf/dompdf/releases/tag/v2.0.0
- Addresses multiple security vulnerabilities (see link)
- Modifies callback and page_script/page_text handling (breaking change, see link)
- Switches the HTML5 parser to Masterminds/HTML5
- Improves CSS property parsing and representation
- Improves border, outline, and background rendering for inline elements
- Switches installed fonts and font metrics cache file format to JSON
- Adds support for the inset CSS shorthand property and the legacy break-word keyword for word-break
- Adds "end_document" callback event