com.aspose.words

Class PdfPageMode

  • java.lang.Object
    • com.aspose.words.PdfPageMode
public class PdfPageMode 
extends java.lang.Object

Utility class containing constants. Specifies how the PDF document should be displayed when opened in the PDF reader.

Example:

Shows how to set the default zooming of an output PDF to 1/4 of default size.
// Open a document with multiple paragraphs
Document doc = new Document(getMyDir() + "Rendering.doc");

PdfSaveOptions options = new PdfSaveOptions();
options.setZoomBehavior(PdfZoomBehavior.ZOOM_FACTOR);
options.setZoomFactor(25);
options.setPageMode(PdfPageMode.USE_THUMBS);

// When opening the .pdf with a viewer such as Adobe Acrobat Pro, the zoom level will be at 25% by default,
// with thumbnails for each page to the left
doc.save(getArtifactsDir() + "PdfSaveOptions.ZoomBehaviour.pdf", options);

Field Summary
static final intUSE_NONE = 0
Neither document outline nor thumbnail images are visible.
static final intUSE_OUTLINES = 1
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 intUSE_THUMBS = 2
Thumbnail images are visible.
static final intFULL_SCREEN = 3
Full-screen mode, with no menu bar, window controls, or any other window visible.
static final intUSE_OC = 4
Optional content group panel is visible.
 

    • Field Detail

      • USE_NONE = 0

        public static final int USE_NONE
        Neither document outline nor thumbnail images are visible.
      • USE_OUTLINES = 1

        public 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.
      • USE_THUMBS = 2

        public static final int USE_THUMBS
        Thumbnail images are visible.
      • FULL_SCREEN = 3

        public static final int FULL_SCREEN
        Full-screen mode, with no menu bar, window controls, or any other window visible.
      • USE_OC = 4

        public static final int USE_OC
        Optional content group panel is visible.