Click or drag to resize

PdfPageRendererDrawingSurface Property

Gets or sets the drawing surface for rendering graphics or images on a PDF 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
public PdfDrawingSurface DrawingSurface { get; protected set; }

Property Value

Type: PdfDrawingSurface
The drawing surface.
Examples
public void Triangle(PdfPageRenderer renderer)
{
    writer.DrawingSurface.Begin();
    writer.AddPath(new PdfPathOperation[] {
        PdfPathOperation.MoveTo(0, 0), PdfPathOperation.LineTo(20, 100),
        PdfPathOperation.LineTo(40, 0), PdfPathOperation.Close()
        });
    writer.DrawingSurface.End();
}
See Also