Gets or sets the deepest the graphics state stack may grow; a q beyond it is ignored with a diagnostic, as is its matching Q. Default 4,096.
q
Q
public int MaxSaveDepth { get; set; }
ISO 32000-2 §8.4.2.