egs = doc:CreateExtGState()
doc:CreateExtGState()
creates a new extended graphics state object.
When doc:CreateExtGState()
succeeds, it returns the handle of the created extended graphics state object.
Otherwise, it returns Nil
and the error handler is invoked.
#HPDF_INVALID_DOCUMENT
- An invalid document handle was set.
#HPDF_FAILED_TO_ALLOC_MEM
- Memory allocation failed.