Width Property (original) (raw)

Summary

Gets or sets the width of the PDF page.

Syntax

public double Width { get; set; } 

public double getWidth(); public void setWidth( double doubleValue );

public: property double Width { double get(); void set ( double ); }

Property Value

The width of the PDF page in PDF units (1/72 of an inch). The default value is 0.

Example

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 PDFFilePagesExample() { string pdfFileName = Path.Combine(LEAD_VARS.ImagesDir, @"Leadtools.pdf"); // Load the file PDFFile file = new PDFFile(pdfFileName); file.Load(); // Show the pages Console.WriteLine("File has {0} pages", file.Pages.Count); foreach (PDFFilePage page in file.Pages) { Console.WriteLine("Page {0} size is {1} by {2} units", page.PageNumber, page.Width, page.Height); } } static class LEAD_VARS { public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; }