OutlineOptions.CreateMissingOutlineLevels

OutlineOptions CreateMissingOutlineLevels property. Gets or sets a value determining whether or not to create missing outline levels when the document is exported.

OutlineOptions.CreateMissingOutlineLevels property

Gets or sets a value determining whether or not to create missing outline levels when the document is exported.

Default value for this property is false.

public bool CreateMissingOutlineLevels { get; set; }

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