.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../../Includes.txt .. _tableofcontent: Table Of Content ================ **IMPORTANT NOTICE:** Please note that TCPDF does not produce valid PDF documents when bookmarks are used. Although most PDF viewers are still able to render the document you might run into validity troubles using these ViewHelpers. .. _tableofcontent_typoscript: TypoScript ---------- :: pdfpage = PAGE pdfpage { 10 = FLUIDTEMPLATE 10 { file = EXT:pdfviewhelpers/Resources/Public/Examples/TableOfContent/Template.html } # ensure there is no other output apart from the pdf # take a look at the generated pdf file (end!) in a text editor to verify there is no other output # like warnings, error messages or html code config { disableAllHeaderCode = 1 xhtml_cleaning = 0 admPanel = 0 } } plugin.tx_pdfviewhelpers.settings { headline { addToTableOfContent = 1 } } module.tx_pdfviewhelpers < plugin.tx_pdfviewhelpers .. _tableofcontent_fluid: Fluid Template -------------- :: General Header General Footer Headline page 1 Headline page 2 Headline page 2, level 1 Headline page 2, level 2 Headline not in table of content Here is some text. Adding custom styled ADVANCED bookmark for a text Here is some more text. regular-table-of-content-header regular-table-of-content-footer Regular table of content html-table-of-content-header html-table-of-content-footer HTML Table of content
LEVEL 0: #TOC_DESCRIPTION# #TOC_PAGE_NUMBER#
  LEVEL 1: #TOC_DESCRIPTION# #TOC_PAGE_NUMBER#
.. _tableofcontent_output: PDF Output ---------- .. figure:: _assets/output_1.png :width: 600px :align: left :alt: Table of content example output | .. figure:: _assets/output_2.png :width: 600px :align: left :alt: Table of content example output | .. figure:: _assets/output_3.png :width: 600px :align: left :alt: Table of content example output | .. figure:: _assets/output_4.png :width: 600px :align: left :alt: Table of content example output | .. figure:: _assets/output_5.png :width: 600px :align: left :alt: Table of content example output |