This sample shows how to save and restore graphics state using PdfCanvas.SaveState and PdfCanvas.RestoreState methods.
Every PDF canvas maintains a set of properties, such as pen, brush, current positions for text and graphics, font, e.t.c. This set of properties is called graphics state.
Using Docotic.Pdf library you can save the current graphics state. Later, you can restore the previously saved state. Restoring the saved state is the only way to remove clipping, for example.