Click or drag to resize
Pdf Library for .NET

PdfTableOfContentsMode Enumeration

How the html to pdf converter builds a table of contents with page numbers.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.5
Syntax
public enum PdfTableOfContentsMode
Members
Member nameValueDescription
None0 No table of contents is processed. This is the default.
FillExisting1 The page already has a table of contents: every internal link (<a href="#id">) inside the element matched by ContainerSelector gets a leader and the number of the pdf page its target is on.
InsertHtml2 The page has no table of contents: one is written into the page from the elements matched by HeadingSelectors, styled by the page's CSS, then completed with leaders and page numbers as FillExisting does.
GeneratePages3 The table of contents is drawn on pages of its own, inserted into the pdf document, from the elements matched by HeadingSelectors, with the appearance the style settings of PdfTableOfContentsOptions give it.
See Also