Associates a graphic state object with the pattern represented by this graphics object.
This method can only be called if this object represents a pattern (IsPattern returns True).
This method was introduced in Version 3.5.
For more information, see Section 16.5 - Patterns and Shadings.