HtmlViewHelper¶
Rendering any html content using TCPDF’s method writeHTML. The default text settings are those from generalText. It is possible to include a css style tag and also inline styles. This ViewHelper is especially useful for rendering Rich Text.
Basic Usage
<pdf:html>
<h1>Some html headline</h1>
<p>Lorem ipsum</p>
</pdf:html>
Advanced Usage
<pdf:html styleSheet="fileadmin/template/pdf_styles.css">
<style>
h1 {
color: #ff642c;
}
</style>
<h1>Some html headline</h1>
<p style="color: #3a718a;">Lorem ipsum</p>
{someAdditionalRichText}
</pdf:html>