Returns the resolved model of a shading of this document.
public PdfShading? GetShading(CosObject shading)
A shading dictionary or stream, or an indirect reference to one, such as a value of a resource dictionary's Shading subdictionary.
null, with a diagnostic, when the object is not a shading of Type 1 to 7. A shading that cannot be painted is returned with
IsValid false.
ISO 32000-2 §8.7.4. Deviations are recorded on Diagnostics when the shading is read, and again when it is read again.