ReadAssociatedFiles(CosDictionary, CosReference?) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Returns the associated files listed in the AF entry of owner.

public IReadOnlyList<PdfFileSpecification> ReadAssociatedFiles(CosDictionary owner, CosReference? ownerReference = null)

Parameters

owner
CosDictionary

Any dictionary or stream dictionary of this document: a structure element, an annotation, a form field.

ownerReference
CosReference

The owner's indirect reference, for diagnostics.

Returns

IReadOnlyList<PdfFileSpecification>
The file specifications, in order.

Remarks

ISO 32000-2 §14.13.2 (PDF 2.0): AF is an array of file specification dictionaries. A single dictionary is read as an array of one and a file specification string is accepted, both with an AssociatedFilesInvalid diagnostic. An embedded associated file without Subtype, or with Params but no ModDate, is reported. A missing AFRelationship means Unspecified and is not reported.