The run a processor is called from: the current graphics state, what is being interpreted, and how to resolve clip handles. One instance serves a whole run; it is valid only during the run's callbacks.
public sealed class ContentContext
ISO 32000-2 §7.8.2 (content streams), §7.8.3 (resources), §8.4 (graphics state), §8.3.2 (coordinate spaces).
kind:method, kind:property, kind:ctor. Press Esc to clear.CancellationTokenGets the token that cancels the run.ContentStreamGets the stream whose content is running when it is a form XObject, a Type 3 glyph description or another nested stream; null for a page's own content.CurrentPartIndexGets the index in the page's Contents array of the part being read; 0 for a single stream.CurrentStreamGets the content stream the current operator is in, or null when that stream is a direct object; for a page whose Contents is an array, the part being read.DefaultColorSpacesGets the default colour spaces of the current resources, which replace the device spaces of what is painted now: pass them to GetColorConverter(PdfColorSpace, PdfDefaultColorSpaces?) with the colour being painted.DepthGets the nesting depth of the running stream: 0 for the top-level run, 1 inside a form it paints, and so on.DocumentGets the document the content belongs to.IsHiddenGets a value indicating whether optional content currently hides what is painted.MarkedContentDepthGets the number of marked-content sequences open at this point, in this stream and the streams that invoked it.PageGets the page being interpreted, or null when the run is not over a page.ResourcesGets the resource dictionary names in the running stream resolve against, or null when there is none.RunKindGets what kind of content stream is running.StateGets the current graphics state, by read-only reference into the interpreter's stack: copy it to keep it.StateDepthGets the number of states saved by q (and implicit saves) above the run's initial state.StreamBaseMatrixGets the CTM at the start of the running stream, the space a pattern named in it is relative to: the identity for a page, the CTM at Do times the form matrix for a form.StructParentsGets the StructParents key of the running content stream: the page's, or the form XObject's; null when it has none. Marked-content identifiers in the stream resolve through this entry of the structural parent tree.TextLineMatrixGets the text line matrix Tlm: valid inside a text object.TextMatrixGets the text matrix Tm: valid inside a text object.FindStructureElement(Int32)Returns the structure element a marked-content identifier of the running content stream belongs to.GetClip(Int32)Returns the clip node a clip handle refers to, such as ClipHandle.GetColorSpace(CosObject)Returns the colour space a value names in the running content stream.GetInlineImage(in ContentOperator)Returns the image view over an inline image: the BeginInlineImage operator's dictionary and data.GetInlineImageColorSpace(CosObject)Returns the colour space of an inline image's ColorSpace (or CS) entry.GetPattern(in PdfColor)Returns the pattern a Pattern colour selected, such as FillColor when painting with a pattern.RunForm(PdfFormXObject, ContentProcessor)Runs a form XObject's content here, with the current graphics state, reporting its events to processor instead of this run's processor; as the Do operator would, with its matrix, bounding box, group and resources.RunPatternCell(in PdfColor, ContentProcessor)Runs the cell of the tiling pattern a colour selected, reporting its events to processor, in the middle of the current event: call it from a processor callback, as often as the processor needs (once per pattern and scale, say).RunSoftMaskGroup(ContentProcessor)Runs the transparency group of the current soft mask (SoftMask), reporting its events to processor: the group in the coordinate system of SoftMaskMatrix, from the initial graphics state otherwise. Does nothing when there is no soft mask.RunType3Glyph(in GlyphEvent, ContentProcessor)Runs the glyph description of a Type 3 glyph, reporting its events to processor: the glyph's CharProcs stream, in glyph space mapped by the font matrix and the glyph's text matrix, with the font's resources.