Bump dompdf/dompdf from 1.2.2 to 2.0.0
Bumps dompdf/dompdf from 1.2.2 to 2.0.0.
Release notes
Sourced from dompdf/dompdf's releases.
Dompdf 2.0.0
Change highlights since 1.2.x
- Addresses multiple security vulnerabilities (see below)
- Modifies callback and page_script/page_text handling (breaking change, see below)
- 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
insetCSS shorthand property and the legacybreak-wordkeyword forword-break- Adds "end_document" callback event
The full list of addressed issues can be found in the release milestone. View all changes since the previous release in the commit history.
This release addresses the following announced vulnerabilities:
Vulnerability References Type Severity Improper Restriction of XML External Entity Reference #25642564 Information Disclosure TBD Deserialization of Untrusted Data #25642564 Remote Code Execution Critical External Control of File Name or Path #25642564 Information Disclosure TBD Server-Side Request Forgery #25642564 Information Disclosure TBD Breaking Changes
- Callback signature change: callbacks should now accept three individual arguments (Frame, Canvas, FontMetrics)
- Canvas::page_* methods are executed immediately rather than during output generation and should be called after rendering the document
- Cpdf::polygon method signature changed, no longer accepts the number of points
- See the migration guide for details
We would like to extend our gratitude to the community members who helped make this release possible.
Requirements
Dompdf 2.0.0 requires the following:
- PHP 7.1 or greater
- MBString
- php-font-lib
- php-svg-lib
Additionally, the following are recommended for optimal use:
- GD (for image processing)
allow_url_fopenset to true or the curl PHP extension (for retrieving stylesheets, images, etc via http)For full requirements and recommendations see the requirements page on the wiki.
Download Instructions
... (truncated)
Commits
79573d8Bump version to 2.0.036be0c2Coding standards: Also checkCpdfclass7f5d0dcOptions docblock updatea389f3dCanvas: Document format of color array165ad28Modify dompdf callback signature97c1d5bAdd anend_documentcallback event65de5afMakepage_scripttake effect immediately78102a7Draw circles for dotted border1d6f991Improve border rendering with GD back end0ec276bSmall improvements to border rendering- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.