←Select platform

PDFPageModeType Enumeration

Summary
Specifies the PDF page mode.
Syntax
C#
C++/CLI
Java
Python
[SerializableAttribute()] 
public enum PDFPageModeType  
public final class PDFPageModeType 
    extends java.lang.Enum<PDFPageModeType> 
[SerializableAttribute()] 
public enum class PDFPageModeType  
class PDFPageModeType(Enum): 
   PageOnly = 0 
   Outlines = 1 
   Thumbs = 2 
   FullScreen = 3 
   Layers = 4 
   Attachments = 5 
Members
ValueMemberDescription
0PageOnly Default: Neither document outline nor thumbnail images visible
1Outlines Document bookmarks visible
2Thumbs Thumbnail images visible
3FullScreen Full-screen mode, with no menu bar, window controls, or any other window visible
4Layers Layer panel visible
5Attachments Attachments panel visible
Remarks

Used by PDFInitialViewOptions to control the PDF page mode.

Example
C#
using Leadtools.WinForms; 
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.Controls; 
using Leadtools.Drawing; 
using Leadtools.ImageProcessing; 
using Leadtools.Pdf; 
using Leadtools.Svg; 
 
 
public void PDFFileInitialViewOptionsExample() 
{ 
   string sourceFileName = Path.Combine(LEAD_VARS.ImagesDir, @"Leadtools.pdf"); 
   string destinationFileName = Path.Combine(LEAD_VARS.ImagesDir, @"LEAD_InitialView.pdf"); 
 
   PDFFile pdfFile = new PDFFile(sourceFileName); 
 
   PDFInitialViewOptions myInitialViewOptions = new PDFInitialViewOptions(); 
   myInitialViewOptions.AutoPrint = false; 
   myInitialViewOptions.CenterWindow = false; 
   myInitialViewOptions.DisplayDocTitle = true; 
   myInitialViewOptions.FitWindow = false; 
   myInitialViewOptions.HideMenubar = true; 
   myInitialViewOptions.HideToolbar = true; 
   myInitialViewOptions.HideWindowUI = true; 
   myInitialViewOptions.PageFitType = PDFPageFitType.FitWidth; 
   myInitialViewOptions.PageLayoutType = PDFPageLayoutType.OneColumnDisplay; 
   myInitialViewOptions.PageModeType = PDFPageModeType.PageOnly; 
   myInitialViewOptions.PageNumber = 2; 
   myInitialViewOptions.ZoomPercent = 100; 
 
   pdfFile.InitialViewOptions = myInitialViewOptions; 
 
   pdfFile.SetInitialView(destinationFileName); 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

See Also

Reference

Leadtools.Pdf Namespace

Help Version 22.0.2023.7.10
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Pdf Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.