Click or drag to resize

PageWidth Property

Gets the viewer width of this page in points.

Namespace:  Atalasoft.Imaging.Codec.Pdf
Assembly:  Atalasoft.dotImage.PdfReader (in Atalasoft.dotImage.PdfReader.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public double Width { get; }

Property Value

Type: Double
Examples
C#
Page page = document.Pages[selectedPage];

const float DPI = 300;
bitmap = new Bitmap( 
  (int) ( page.Width / 72 * DPI ), 
  (int) ( page.Height / 72 * DPI ) );
Graphics graphics = Graphics.FromImage( bitmap );

float scale = DPI / 72;
graphics.ScaleTransform( scale, scale );

page.Draw( graphics );
See Also