Skip to content

Latest commit

 

History

History

LinesAndCurves

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Draw lines and curves in C# and VB.NET

This sample shows how to draw straight lines and cubic Bezier curves on PDF canvas using Docotic.Pdf library.

Description

To draw anything in a PDF document, use the methods and properties of the PdfCanvas class. You can access a canvas using the Canvas property of PdfPage, PdfXObject, or PdfTilingPattern classes.

There are plenty of methods that draw lines, curves and shapes. All these methods have names that start with Draw (e.g. DrawLineTo method). The current pen is used to draw all kinds of lines.

See also