Fix PDF css
pdf class was not added to body on pdf command
This commit is contained in:
parent
317f33e33c
commit
4418c0c558
|
@ -98,7 +98,7 @@ class PdfCommand extends HtmlCommand
|
|||
// to our html document
|
||||
$simpleDom = HtmlDomParser::str_get_html($rendered);
|
||||
$body = $simpleDom->find('body', 0);
|
||||
$body->class = $body->class . ' pdf';
|
||||
$body->setAttribute('class', $body->getAttribute('class') . ' pdf');
|
||||
$rendered = (string) $simpleDom;
|
||||
|
||||
// Save to a temp destination for the pdf renderer to use
|
||||
|
|
Loading…
Reference in New Issue