Html
class Html extends AbstractWriter
Methods
addHtml(string $html)
Add HTML directly to Mpdf using the current Mpdf Y pointer position
Details
at line 66
addHtml(string $html)
Add HTML directly to Mpdf using the current Mpdf Y pointer position
Normal PDF templates are sandboxed directly to this method. The Toolkit-templates are not and give you full access
to the Mpdf object, as well as our helper object $w
. Use this method when you aren't auto-filling a PDF, or want
to create a hybrid (some pages will auto-fill a PDF, while others will be dynamically generated with HTML).
Example
// Add HTML to PDF
$w->addHtml( '<h1>This is my title</h1><p>This is my content</p>' );