| Search Locate Previous Next | Contents |
This property can be applied to a paragraph to cause it to make an automatic entry in the bookmarks table (using the paragraph text as the bookmark entry). This would most commonly be used in a style definition such as:
'H1'leaf.DefineStyle('font' 'arb,18')('pa' 1)('toc' 1 1)
'H2'leaf.DefineStyle('font' 'arb,15')('sp' 12 6)('toc' 2 0)
'H3'leaf.DefineStyle('font' 'tib,12')('sp' 6 0)('toc' 3 0)
This will create a complete contents tree for the document from the various headings as they occur. This will be used by Acrobat Distiller or the built-in PDF generation to create an outline tree for the document.
See also ...
leaf.Bookmark mark TOC entry
leaf.Style set paragraph style