PDFReaderControls.NET Professional Type Reference

Page.Draw Method (Graphics, PageBoundary, RenderSettings)

Draws the page content.

public void Draw(
   Graphics graphics,
   PageBoundary pageBoundary,
   RenderSettings renderSettings
);

Parameters

graphics
Graphics object to which content is drawn.
pageBoundary
The page boundary that is used to draw the PDF page. If the page boundary is not specified for this page, Default is used.
renderSettings
Settings that control the render process.

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 | Page.Draw Overload List