Click or drag to resize

IPdfRenderableRender Method

Generates PDF content for this object using the provider PdfPageRenderer object. The PdfPageRenderer represents an object that is aggregating PDF content for a particular page. It is the responsibility of each object that implements IPdfRenderable to add content appropriate for that object to the page.

Namespace:  Atalasoft.PdfDoc.Generating.Rendering
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
void Render(
	PdfPageRenderer r
)

Parameters

r
Type: Atalasoft.PdfDoc.Generating.RenderingPdfPageRenderer
The PdfPageRenderer for generating PDF.
Examples
public void GeneratePdf(PdfPageRenderer r)
{
   w.DrawingSurface.Begin();
   w.DrawingSurface.AddRect(MyBounds); // place a rectangle
   w.DrawingSurface.Stroke(PdfLineStyle.Default, MyColor); // draw its outline in black
   w.DrawingSurface.End();
}
See Also