←Select platform

PDFPageLayoutType Enumeration

Summary
Specifies the PDF page layout.
Syntax
C#
C++/CLI
Java
Python
[SerializableAttribute()] 
public enum PDFPageLayoutType  
public final class PDFPageLayoutType 
    extends java.lang.Enum<PDFPageLayoutType> 
[SerializableAttribute()] 
public enum class PDFPageLayoutType  
class PDFPageLayoutType(Enum): 
   SinglePageDisplay = 0 
   OneColumnDisplay = 1 
   TwoColumnLeftDisplay = 2 
   TwoColumnRightDisplay = 3 
   TwoPageLeft = 4 
   TwoPageRight = 5 
Members
ValueMemberDescription
0SinglePageDisplay Default: Display one page at a time
1OneColumnDisplay Display the pages in one column
2TwoColumnLeftDisplay Display the pages in two columns, with odd-numbered pages on the left
3TwoColumnRightDisplay Display the pages in two columns, with odd-numbered pages on the right
4TwoPageLeft Display the pages two at a time, with odd-numbered pages on the left
5TwoPageRight Display the pages two at a time, with odd-numbered pages on the right
Remarks

Used by PDFInitialViewOptions to control the PDF page layout.

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.