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.147.0
Syntax
public void Draw(
	Graphics graphics,
	PageBoundary pageBoundary,
	RenderSettings renderSettings,
	Summary summary
)

Parameters

graphics
Type: System.DrawingGraphics
Graphics object to which content is drawn.
pageBoundary
Type: TallComponents.PDF.RasterizerPageBoundary
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
Type: TallComponents.PDF.Rasterizer.ConfigurationRenderSettings
Settings that control the render process.
summary
Type: TallComponents.PDF.Rasterizer.DiagnosticsSummary
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