Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 905 Bytes

File metadata and controls

13 lines (8 loc) · 905 Bytes

Working with graphics state in C# and VB.NET

This sample shows how to save and restore graphics state using PdfCanvas.SaveState and PdfCanvas.RestoreState methods.

Description

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.

See also