You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function toHtml(): string
{
$bodyElement = $this->dom->getElementsByTagName('body')->item(0);
if (is_null($bodyElement)) {
throw new RowBloomException('Error retrieving the DOM body element');
}
$htmlString = $this->dom->saveHTML($bodyElement);
if ($htmlString === false) {
throw new RowBloomException('An error occurred while dumping the internal document');
}
$htmlString = str_replace(['<body>', '</body>'], '', $htmlString);
++ var_dump(mb_detect_encoding($htmlString), $htmlString);
return $htmlString;
}
Tried footerTemplate: '{PAGENO}/{nbpg}', and footerTemplate: '<p><span class="pageNumber"></span>/<span class="totalPages"></span></p>',. Both codes output:
medilies
changed the title
Fix totalPages and pageNumber DOM interpretation
[disappeared] Fix totalPages and pageNumber DOM interpretation
Nov 19, 2023
medilies
changed the title
[disappeared] Fix totalPages and pageNumber DOM interpretation
(disappeared Fix totalPages and pageNumber DOM interpretation
Nov 19, 2023
medilies
changed the title
(disappeared Fix totalPages and pageNumber DOM interpretation
(disappeared) Fix totalPages and pageNumber DOM interpretation
Nov 19, 2023
The bug disappeared after 5dd1358 and 4cd8101 commits
Not related to encoding
public function toHtml(): string { $bodyElement = $this->dom->getElementsByTagName('body')->item(0); if (is_null($bodyElement)) { throw new RowBloomException('Error retrieving the DOM body element'); } $htmlString = $this->dom->saveHTML($bodyElement); if ($htmlString === false) { throw new RowBloomException('An error occurred while dumping the internal document'); } $htmlString = str_replace(['<body>', '</body>'], '', $htmlString); ++ var_dump(mb_detect_encoding($htmlString), $htmlString); return $htmlString; }
Tried
footerTemplate: '{PAGENO}/{nbpg}',
andfooterTemplate: '<p><span class="pageNumber"></span>/<span class="totalPages"></span></p>',
. Both codes output:The text was updated successfully, but these errors were encountered: