PageDraw Method (Graphics, PageBoundary, RenderSettings, Summary)

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,
	RenderSettings renderSettings,
	Summary summary
)
Summary
The summary to which diagnostic information is written
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