src/Html2Pdf.php
public function writeHTML($html)
    {
        $html = $this->parsingHtml->prepareHtml($html);
        $html = $this->parsingCss->extractStyle($html);
        $this->parsingHtml->parse($this->lexer->tokenize($html));
        $this->_makeHTMLcode();

        return $this;
    }
public function writeHTML($html)
    {
        $html = $this->parsingHtml->prepareHtml($html);
        $html = $this->parsingCss->extractStyle($html);
        $this->parsingHtml->parse($this->lexer->tokenize($html));
        $this->_makeHTMLcode();

        return $this;
    }
public function writeHTML ( $ html ) { $ html = $ this -> parsingHtml -> prepareHtml ( $ html ) ; $ html = $ this -> parsingCss -> extractStyle ( $ html ) ; $ this -> parsingHtml -> parse ( $ this -> lexer -> tokenize ( $ html ) ) ; $ this -> _makeHTMLcode ( ) ; return $ this ; }
convert HTML to PDF

@param string $html

@return Html2Pdf
convert HTML to PDF