Click or drag to resize

PdfPageMode Enumeration

Specifies how the PDF document should be displayed when opened in the PDF reader.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public enum PdfPageMode
Members
  Member nameValueDescription
UseNone0 Neither document outline nor thumbnail images are visible.
UseOutlines1 Document outline is visible. Note that if there're no outlines in the PDF document then outline navigation pane will not be visible anyway.
UseThumbs2 Thumbnail images are visible.
FullScreen3 Full-screen mode, with no menu bar, window controls, or any other window visible.
UseOC4 Optional content group panel is visible.
Examples
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(MyDir + "Rendering.docx");

PdfSaveOptions options = new PdfSaveOptions();
options.ZoomBehavior = PdfZoomBehavior.ZoomFactor;
options.ZoomFactor = 25;
options.PageMode = PdfPageMode.UseThumbs;

// 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(ArtifactsDir + "PdfSaveOptions.ZoomBehaviour.pdf", options);
See Also