Skip to content

Commit

Permalink
bugfix: next missed adjustments to newer Html2Pdf library versions
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Dec 21, 2021
1 parent 0f525ca commit 5035202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/html2pdf/LMSHTML2PDF.php
Expand Up @@ -58,7 +58,7 @@ public function __construct($orientation = 'P', $format = 'A4', $langue = 'fr',
$this->pdf = new \Spipu\Html2Pdf\MyPdf($orientation, 'mm', $format, $unicode, $encoding);

// init the CSS parsing object
$textParser = new \Spipu\Html2Pdf\Parsing\TextParser();
$textParser = new \Spipu\Html2Pdf\Parsing\TextParser($encoding);
$tagParser = new \Spipu\Html2Pdf\Parsing\TagParser($textParser);
$cssConverter = new \Spipu\Html2Pdf\CssConverter();
$this->parsingCss = new LMSHTML2PDF_parsingCss($this->pdf, $tagParser, $cssConverter);
Expand All @@ -73,7 +73,7 @@ public function __construct($orientation = 'P', $format = 'A4', $langue = 'fr',
$this->setDefaultFont(null);

// init the HTML parsing object
$this->parsingHtml = new \Spipu\Html2Pdf\Parsing\Html($this->_encoding);
$this->parsingHtml = new \Spipu\Html2Pdf\Parsing\Html($textParser);
$this->_subHtml = null;
$this->_subPart = false;

Expand Down

0 comments on commit 5035202

Please sign in to comment.