This sample shows how to construct and use graphics paths on PDF canvas using Docotic.Pdf library.
Graphics path is a series of connected lines and curves. You can construct a graphics path using methods of the PdfCanvas class with names that start with Append
(e.g. AppendLineTo
, AppendRectangle
). All those methods do not place any marks on a canvas. Instead, they add corresponding shapes to the current graphics path.
You can fill, stroke, or reset the constructed graphics path. You can also use the constructed path as a clip region of a canvas.