<html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
          xmlns:pdf="http://typo3.org/ns/Bithost/Pdfviewhelpers/ViewHelpers"
          xsi:schemaLocation="http://typo3.org/ns/Bithost/Pdfviewhelpers/ViewHelpers pdfviewhelpers.bithost.ch/schema/2.3.xsd"
          data-namespace-typo3-fluid="true">

<pdf:document outputDestination="inline">
        <pdf:header>
                <pdf:text>General Header</pdf:text>
        </pdf:header>
        <pdf:footer posY="-20">
                <pdf:text>General Footer</pdf:text>
        </pdf:footer>

        <pdf:page>
                <pdf:headline>Headline page 1</pdf:headline>

                <pdf:pageBreak />

                <pdf:headline>Headline page 2</pdf:headline>
                <pdf:headline tableOfContentLevel="1">Headline page 2, level 1</pdf:headline>
                <pdf:headline tableOfContentLevel="2">Headline page 2, level 2</pdf:headline>

                <pdf:pageBreak />

                <pdf:headline addToTableOfContent="0">Headline not in table of content</pdf:headline>

                <pdf:bookmark level="0" text="Adding custom styled bookmark for a text" />
                <pdf:text>Here is some text.</pdf:text>

                <pdf:bookmark level="0" fontStyle="B" color="#999">Adding custom styled ADVANCED bookmark for a text</pdf:bookmark>
                <pdf:text>Here is some more text.</pdf:text>
        </pdf:page>

        <pdf:page tableOfContentPage="1">
                <pdf:header>
                        <pdf:text color="#8C8C8C">regular-table-of-content-header</pdf:text>
                </pdf:header>
                <pdf:footer>
                        <pdf:text color="#8C8C8C">regular-table-of-content-footer</pdf:text>
                </pdf:footer>

                <pdf:headline addToTableOfContent="0">Regular table of content</pdf:headline>
                <pdf:tableOfContent page="1" name="Index" />
        </pdf:page>

        <pdf:page tableOfContentPage="1">
                <pdf:header>
                        <pdf:text color="#8C8C8C">html-table-of-content-header</pdf:text>
                </pdf:header>
                <pdf:footer>
                        <pdf:text color="#8C8C8C">html-table-of-content-footer</pdf:text>
                </pdf:footer>

                <pdf:headline addToTableOfContent="0">HTML Table of content</pdf:headline>
                <pdf:tableOfContent page="1" name="Index" htmlMode="1">
                        <pdf:htmlBookmarkTemplate level="0">
                                <table border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                                <td width="155mm">
                                                        <span style="font-size:12pt;">LEVEL 0: #TOC_DESCRIPTION#</span>
                                                </td>
                                                <td width="25mm">
                                                        <span style="font-size:12pt;" align="right">#TOC_PAGE_NUMBER#</span>
                                                </td>
                                        </tr>
                                </table>
                        </pdf:htmlBookmarkTemplate>
                        <pdf:htmlBookmarkTemplate level="1">
                                <table border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                                <td width="5mm">&nbsp;</td>
                                                <td width="150mm">
                                                        <span style="font-size:12pt;color: #ff642c;">LEVEL 1: #TOC_DESCRIPTION#</span>
                                                </td>
                                                <td width="25mm">
                                                        <span style="font-size:12pt;color: #ff642c;" align="right">#TOC_PAGE_NUMBER#</span>
                                                </td>
                                        </tr>
                                </table>
                        </pdf:htmlBookmarkTemplate>
                </pdf:tableOfContent>
        </pdf:page>
</pdf:document>

</html>
Wird geladen