This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

toc

Summary

Inserts a generated table of contents.

Usage

pdf(toc, hash( contentText, toc_header_text,
             [ size,        size_array,  ]
             [ dots,        boolean,     ]
             [ indent,      indent_array ] ) )

Parameters

NameTypeDescriptionRequired
contentText string Table of contents header. Yes.
size array An array of numbers, indicating the font sizes for each header level. No.
indent array An array of booleans, indicating whether the title should be indented for each header level. No.
dots boolean Display dots between the titles and page numbers. No.

Description

This function generates and inserts the table of contents after the front page. If the front page is not available, the table of contents is inserted at the beginning of the PDF document.

Examples

Example 1

{pdf( 'toc', hash( 'size', array( 18, 16, 14, 12, 10 ),
      'dots', true(),
      'contentText', 'Content'|wash( 'pdf' ),
      'indent', array( 0, 4, 6, 8, 10 ) ) )}

This example creates a table of contents. The size of the level 1 headers will be 18 and will not indented, level 2 headers will have size 16 and will be indented 4 dots, etc. There will be dots between the headers and the page numbers.

Balazs Halasy (14/05/2004 10:19 am)

Balazs Halasy (04/05/2005 12:28 pm)

Balazs Halasy, Raymond Bosman


Comments

There are no comments.