Search results

PdfPageMode API in JavaScript (ES5) Pdf Export API control

Represents mode of document displaying.

// Create a new PDF document
let document : PdfDocument = new PdfDocument();
// Gets the viewer preferences of the document
let viewerPreferences : PdfViewerPreferences = document.viewerPreferences;
// Sets the page mode
viewerPreferences.pageMode = PdfPageMode.UseOutlines;
// Destroy the document
document.destroy();
  • FullScreen - Full-screen mode, with no menu bar, window controls, or any other window visible.
  • UseAttachments - Attachments are visible.
  • UseNone - Default value. Neither document outline nor thumbnail images visible.
  • UseOC - Optional content group panel visible.
  • UseOutlines - Document outline visible.
  • UseThumbs - Thumbnail images visible.