Follows the marked-content nesting of a content stream and answers whether the current position is visible: the seam a content
interpreter calls on every BDC, BMC and EMC, and before drawing an optional XObject or annotation.
public sealed class PdfOptionalContentTracker
ISO 32000-2 §8.11.3. A section is optional content when its tag is OC and its property list is a group or membership
dictionary (§8.11.3.2); other tags nest transparently. Content is visible only when every enclosing optional section is
(§8.11.2.1); use one tracker across a form XObject's content so the invoking section's visibility carries into it. Hidden content
is not drawn but its graphics state changes still apply (§8.11.3.1): that is the caller's part.
Not thread-safe: one tracker per interpretation. Pushing and popping allocate nothing after the nesting reached its maximum once.
kind:method, kind:property, kind:ctor. Press Esc to clear.PdfOptionalContentTracker(PdfOptionalContentProperties?, PdfOptionalContentState?)Initializes a new instance of the PdfOptionalContentTracker class.DepthGets the current marked-content nesting depth.IsVisibleGets a value indicating whether content at the current nesting is visible.BeginMarkedContent(CosName, CosObject?, Boolean)Enters a marked-content section (BDC or BMC).EndMarkedContent()Leaves the innermost marked-content section (EMC). An EMC without a section is ignored.IsObjectVisible(CosDictionary)Returns whether an XObject or annotation with the given dictionary is visible here: the current nesting is visible and its OC entry, if any, says so. An annotation's flags are the caller's concern.Reset()Forgets every open section, for reuse with another content stream.