public class PdfPageMode
Example: Example:
Document doc = new Document(getMyDir() + "Document.docx");
PdfSaveOptions options = new PdfSaveOptions();
options.setPageMode(pageMode);
doc.save(getArtifactsDir() + "PdfSaveOptions.PageMode.pdf", options);
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 int | USE_NONE | |
Neither document outline nor thumbnail images are visible.
|
||
static final int | USE_OUTLINES | |
Document outline is visible.
Note that if there're no outlines in the PDF document then outline navigation pane will not be visible anyway.
|
||
static final int | USE_THUMBS | |
Thumbnail images are visible.
|
||
static final int | FULL_SCREEN | |
Full-screen mode, with no menu bar, window controls, or any other window visible.
|
||
static final int | USE_OC | |
Optional content group panel is visible.
|
public static final int USE_NONE
public static final int USE_OUTLINES
public static final int USE_THUMBS
public static final int FULL_SCREEN
public static final int USE_OC