com.aspose.words
Class HeaderFooterBookmarksExportMode
java.lang.Object
com.aspose.words.HeaderFooterBookmarksExportMode
public class HeaderFooterBookmarksExportMode
- extends java.lang.Object
Utility class containing constants.
Specifies how bookmarks in headers/footers are exported.
Example:
Shows how bookmarks in headers/footers are exported to pdf.
Document doc = new Document(getMyDir() + "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();
saveOptions.setHeaderFooterBookmarksExportMode(headerFooterBookmarksExportMode);
saveOptions.getOutlineOptions().setDefaultBookmarksOutlineLevel(1);
doc.save(getArtifactsDir() + "PdfSaveOption.HeaderFooterBookmarksExportMode.pdf", saveOptions);
Field Summary |
static final int | NONE = 0 | |
Bookmarks in headers/footers are not exported.
|
static final int | FIRST = 1 | |
Only bookmark in first header/footer of the section is exported.
|
static final int | ALL = 2 | |
Bookmarks in all headers/footers are exported.
|
NONE = 0 | |
public static final int NONE |
-
Bookmarks in headers/footers are not exported.
FIRST = 1 | |
public static final int FIRST |
-
Only bookmark in first header/footer of the section is exported.
ALL = 2 | |
public static final int ALL |
-
Bookmarks in all headers/footers are exported.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.