Skip to content
Snippets Groups Projects
Commit ba4f98bf authored by Steven Ayers's avatar Steven Ayers Committed by Nigel Cunningham
Browse files

Issue #3321310: Log _dompdf_warnings

parent f27697d4
No related branches found
No related tags found
2 merge requests!4Issue #3321310: Log _dompdf_warnings,!2Issue #3275815: PDF Content getting doubly-utf8 encoded with mPDF
......@@ -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);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment