Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Dompdf3, add new options #1047

Merged
merged 2 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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