PDFReaderControls.NET Professional Type Reference

Page.VisualHeight Property

Viewer height of this page in points.

public double VisualHeight {get;}

Example

 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

Page Class | TallComponents.PDF Namespace