PdfOptionalContentTracker Class

Definition

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

Remarks

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.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Properties (2)

Methods (4)