Word headings to PDF Outlines

I tried the example from : Options When Converting to PDF|Aspose.Words for .NET

But no Outline is generated in the created PDF document.

var options = new Aspose.Words.Saving.PdfSaveOptions();
//options.OutlineOptions.CreateMissingOutlineLevels = true;
//options.OutlineOptions.DefaultBookmarksOutlineLevel = 1;
options.OutlineOptions.HeadingsOutlineLevels = 3;
options.OutlineOptions.ExpandedOutlineLevels = 1;

wordsDocument.Save(outputFilePath, options);

What is wrong with the logic?

Sorry, disregard this question. I figure it out.

2 Likes

@peernet Please feel free to ask in case of any further issue. We are always glad to help you.