Skip to content

Latest commit

 

History

History

GraphicsState

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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