RestoreGraphicsState
IPDFDocument4 :: Page Operations :: Common

See Also
Collapse All

This method pulls the graphical state from the stack.

Syntax

HRESULT RestoreGraphicsState ()
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

A well-structured PDF document usually contains many graphical elements that are independent of each other and sometimes nested to multiple levels. The graphics state stack allows these elements to make local changes to the graphics state without disturbing the graphics state of the surrounding environment. The SaveGraphicsState method allows you to use the memory stack for saving the graphical state.

See the SaveGraphicsState method for examples.

See Also

Reference