PdfSaveOptionsHeaderFooterBookmarksExportMode Property

Determines how bookmarks in headers/footers are exported.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public HeaderFooterBookmarksExportMode HeaderFooterBookmarksExportMode { get; set; }

Property Value

Type: HeaderFooterBookmarksExportMode
Remarks

The default value is All.

This property is used in conjunction with the OutlineOptions option.

Examples
Shows how bookmarks in headers/footers are exported to pdf.
Document doc = new Document(MyDir + "Bookmarks in headers and footers.docx");

// You can specify how bookmarks in headers/footers are exported
// There is a several options for this:
// "None" - Bookmarks in headers/footers are not exported
// "First" - Only bookmark in first header/footer of the section is exported
// "All" - Bookmarks in all headers/footers are exported
PdfSaveOptions saveOptions = new PdfSaveOptions
{
    HeaderFooterBookmarksExportMode = headerFooterBookmarksExportMode,
    OutlineOptions = { DefaultBookmarksOutlineLevel = 1 }
};
doc.Save(ArtifactsDir + "PdfSaveOptions.HeaderFooterBookmarksExportMode.pdf", saveOptions);
See Also