DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

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" autoHyphenation="1" padding="{bottom: 5}">
        <style>
                h1 {
                        color: #ff642c;
                }
        </style>

        <h1>Some html headline</h1>
        <p style="color: #3a718a;">Lorem ipsum</p>

        {someAdditionalRichText}
</pdf:html>