Skip to content

Commit

Permalink
Allow Dompdf3, add new options (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored May 13, 2024
1 parent 235c9c2 commit 4129f79
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"require": {
"php": "^7.2 || ^8.0",
"dompdf/dompdf": "^2.0.7",
"dompdf/dompdf": "^2.0.7 || ^3.0",
"illuminate/support": "^6|^7|^8|^9|^10|^11"
},
"require-dev": {
Expand Down
19 changes: 19 additions & 0 deletions config/dompdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
"https://" => ["rules" => []]
],

/**
* Operational artifact (log files, temporary files) path validation
*/
'artifactPathValidation' => null,

/**
* @var string
*/
Expand Down Expand Up @@ -266,6 +271,20 @@
*/
"enable_remote" => true,

/**
* List of allowed remote hosts
*
* Each value of the array must be a valid hostname.
*
* This will be used to filter which resources can be loaded in combination with
* isRemoteEnabled. If enable_remote is FALSE, then this will have no effect.
*
* Leave to NULL to allow any remote host.
*
* @var array|null
*/
'allowed_remote_hosts' => null,

/**
* A ratio applied to the fonts height to be more like browsers' line height
*/
Expand Down

0 comments on commit 4129f79

Please sign in to comment.