com.aspose.words
Class HeaderFooterBookmarksExportMode

java.lang.Object
    extended by 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);
saveOptions.setPageMode(PdfPageMode.USE_OUTLINES);

doc.save(getArtifactsDir() + "PdfSaveOptions.HeaderFooterBookmarksExportMode.pdf", saveOptions);

Field Summary
static final intNONE = 0
           Bookmarks in headers/footers are not exported.
static final intFIRST = 1
           Only bookmark in first header/footer of the section is exported.
static final intALL = 2
           Bookmarks in all headers/footers are exported.
 

Field Detail

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.