PageDraw Method (Graphics, PageBoundary)

Draws the page content.

Namespace:  TallComponents.PDF.Rasterizer
Assembly:  TallComponents.PDF.Rasterizer (in TallComponents.PDF.Rasterizer.dll) Version: 3.0.159.0
Syntax
public void Draw(
	Graphics graphics,
	PageBoundary pageBoundary
)
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.
Examples
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 );

<b>page.Draw( graphics );</b>
See Also