EnumerateObjectMetadata(Boolean) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Enumerates every object-level metadata stream of the document with the object it describes.

public IEnumerable<PdfObjectMetadata> EnumerateObjectMetadata(bool deep = false)

Parameters

deep
Boolean

false walks the locations Application Note 003 lists: the catalog, optional content groups, threads, structure elements, document parts, embedded files, pages, XObjects, ICC profiles, embedded font programs, Type 3 fonts, tiling patterns, shadings, marked-content property lists, annotations and 3D artwork. true also scans every object of the file for a Metadata entry, reporting those as Other.

Returns

IEnumerable<PdfObjectMetadata>
A lazy sequence; each object is reported once. Nothing is cached.

Remarks

ISO 32000-2 §14.3.2 (PDF 1.4), Tables 347 and 348, and PDF 2.0 Application Note 003. A metadata stream without Type Metadata and Subtype XML is still reported, with a MetadataStreamInvalid diagnostic.