Table of contents

<< Click to Display Table of Contents >>

Navigation:  EasyPDFMaker documentation > Getting started > Step by Step > Working with PDF file >

Table of contents

Previous pageReturn to chapter overviewNext page

 

 dd.BeginContent()

 

         dd.BeginTOC()

                 dd.AddText('INDEX', '"style": "header"')

         dd.EndTOC()

 

         dd.AddText('This is a header', '"style": "header", "tocItem": true')

 

 dd.EndContent()

 

 

[=== compare with pdfmake:

var docDefinition = {

content: [

   {

    toc: {

      title: {text: 'INDEX', style: 'header'}

     }

   },

   {

    text: 'This is a header',

    style: 'header',

    tocItem: true, // or tocItem: 'mainToc' if is used id in toc

    // or tocItem: ['mainToc', 'subToc'] for multiple tocs

  }

 ]

}

===]