ApplyUsageStates(PdfOptionalContentState, PdfOptionalContentEvent) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Applies every group's usage state for usageEvent (ViewState, PrintState or ExportState) whether or not an auto-state entry asks for it, as pdf.js and PDFBox do. Not the specification's behaviour: for engine parity only.

public PdfOptionalContentState ApplyUsageStates(PdfOptionalContentState state, PdfOptionalContentEvent usageEvent)

Parameters

state
PdfOptionalContentState

The current states.

usageEvent
PdfOptionalContentEvent

Which usage state to apply.

Returns

PdfOptionalContentState
The new states.

Remarks

ISO 32000-2 §8.11.4.4 says usage states apply only through AS ("If no AS entry is present, states shall not be automatically adjusted").