This sample shows how to use the current graphics path as a clip region of a canvas.
Docotic.Pdf library provides methods to add vector graphics like lines, curves, and shapes to graphics path. You can set the current graphics path as a clip region of a canvas using the PdfCanvas.SetClip method.
Once you set a clip region, you can fill or stroke it. You can also just continue drawing on a canvas. When a canvas has a clip region, any part of a graphics, text and images that lay outside the clip region will not be visible.