GetAction(CosObject?, CosReference?) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Reads an action dictionary through the typed view of its type.

public PdfAction? GetAction(CosObject? value, CosReference? ownerReference = null)

Parameters

value
CosObject

The action dictionary, or a reference to it, from this document: an A entry, an element of Next, a value of an additional-actions dictionary.

ownerReference
CosReference

The indirect object holding value, for diagnostics when the action is direct.

Returns

PdfAction
The action; null when value is absent or resolves to null, or, with an ActionInvalid diagnostic, when it is not a dictionary with an S name.

Remarks

ISO 32000-2 §12.6.2 and §12.6.4. The entry point for actions held by objects the document model does not type yet (link, screen and widget annotations, form fields). The action's own deviations are reported now, so strict mode throws here.