PdfSaveOptionsHeaderFooterBookmarksExportMode Property |
Namespace: Aspose.Words.Saving
The default value is All.
This property is used in conjunction with the OutlineOptions option.
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);