Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pdf_api
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
pdf_api
Commits
ba4f98bf
Commit
ba4f98bf
authored
2 years ago
by
Steven Ayers
Committed by
Nigel Cunningham
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3321310
: Log _dompdf_warnings
parent
f27697d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!4
Issue #3321310: Log _dompdf_warnings
,
!2
Issue #3275815: PDF Content getting doubly-utf8 encoded with mPDF
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/PdfGenerator/DompdfGenerator.php
+4
-2
4 additions, 2 deletions
src/Plugin/PdfGenerator/DompdfGenerator.php
with
4 additions
and
2 deletions
src/Plugin/PdfGenerator/DompdfGenerator.php
+
4
−
2
View file @
ba4f98bf
...
...
@@ -81,8 +81,10 @@ class DompdfGenerator extends PdfGeneratorBase implements ContainerFactoryPlugin
public
function
addPage
(
$html
)
{
$this
->
generator
->
load_html
(
$html
);
$this
->
generator
->
render
();
foreach
(
$GLOBALS
[
'_dompdf_warnings'
]
as
$warning
)
{
\Drupal
::
logger
(
'pdf api'
)
->
warning
(
$warning
);
if
(
is_array
(
$GLOBALS
[
'_dompdf_warnings'
]))
{
foreach
(
$GLOBALS
[
'_dompdf_warnings'
]
as
$warning
)
{
\Drupal
::
logger
(
'pdf api'
)
->
warning
(
$warning
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment