diff --git a/src/Resume/Command/PdfCommand.php b/src/Resume/Command/PdfCommand.php index 1031368b..f9db2497 100644 --- a/src/Resume/Command/PdfCommand.php +++ b/src/Resume/Command/PdfCommand.php @@ -98,7 +98,7 @@ protected function execute(InputInterface $input, OutputInterface $output) // 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