Skip to content

Object metadata stream locations (PDF 2.0 Application Note 003) #361

Open

Description

@Tim81

PDF 2.0 Application Note 003 (2021) summarises where XMP may be attached and where processors should
look for it. ISO 32000-2 14.3.2 states the governing rule: any stream or dictionary may carry metadata
as long as it represents an actual information resource, and where there is ambiguity the metadata
shall be attached as closely as possible to the object that stores the resource.

Explicitly defined locations

Catalog (Table 29), page (31), ICC profile stream (65), image XObject (87), form XObject (93), and —
new in PDF 2.0 — document thread (162) and DPart (409). The last two shall be indirect references.

Locations AN003 says are implied but not tabulated

  • Embedded font programs — on the FontFile, FontFile2 or FontFile3 stream, not on the
    font descriptor. 14.3.2 NOTE 1 says so directly.
  • Tiling patterns — on the pattern stream dictionary.
  • Shadings — on the shading dictionary, not on the shading pattern that references it.
  • Marked content — in the property list, which therefore cannot be inline and must be a named
    resource. B1 adds /Properties for exactly this reason.
  • Structure elements — 14.8.4.3 mentions only Document and DocumentFragment, and AN003 states
    explicitly that this should not be read as a limit.

Disambiguation rules AN003 gives

Because property lists are shared by several features, AN003 rules three uses out of the property list:
optional-content metadata belongs in the OCG dictionary; structure-element metadata in the structure
element dictionary; associated-file metadata in the file specification or embedded file stream
dictionary. The property list is left for content sequences that are untagged or only partly tagged.

Also: Type 3 font metadata goes in the font dictionary, unlike embedded font programs; annotation
metadata in the annotation dictionary; RichMedia asset metadata in each asset file specification; and
3D artwork metadata in the 3D stream — which is not an embedded file, so those rules do not apply.

Why unscheduled

Object-level metadata has narrow demand. Recorded so the locations are known when it is wanted, and so
H8 document-metadata editing is written to leave all of them alone.

Relates to


Suggested target: Backlog.


Plan labels used above, resolved: B1 #249 · H8 #334.

Activity

  1. added this to the Backlog milestone on Aug 29, 2026
  2. added
    priority/P2
    type/feature
    on Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/P2type/feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions