OutlineOptions.HeadingsOutlineLevels
OutlineOptions HeadingsOutlineLevels property. Specifies how many levels of headings paragraphs formatted with the Heading styles to include in the document outline.
OutlineOptions.HeadingsOutlineLevels property
Specifies how many levels of headings (paragraphs formatted with the Heading styles) to include in the document outline.
public int HeadingsOutlineLevels { get; set; }
Remarks
Specify 0 for no headings in the outline; specify 1 for one level of headings in the outline and so on.
Default is 0. Valid range is 0 to 9.
Examples
Shows how to configure outlines in PDF.
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.OutlineOptions.HeadingsOutlineLevels = 3;
pdfSaveOptions.OutlineOptions.ExpandedOutlineLevels = 2;
pdfSaveOptions.OutlineOptions.CreateMissingOutlineLevels = true;
pdfSaveOptions.OutlineOptions.CreateOutlinesForHeadingsInTables = true;
Converter.Create()
.From(MyDir + "TOC.docx")
.To(ArtifactsDir + "PdfSaveOptions.OutlineOptions.pdf", pdfSaveOptions)
.Execute();
See Also
- class OutlineOptions
- namespace Wordize.Saving
- assembly Wordize