pdf_metadata
Read a PDF's document properties—title, author, dates, producer, keywords—and reconcile Info dictionary vs XMP conflicts so you know who made it, when, and with what.
Instructions
Read a PDF's document properties: title, author, dates, producer, keywords.
Answers "who made this, when, and with what". It does not count pages (use pdf_page_count) and says nothing about whether the pages hold readable text (use pdf_check_text).
A PDF can store these fields in two independent places, the legacy Info
dictionary and an XMP packet, and the two often disagree. The normalized
answer is at the top level, preferring XMP, with sources naming the store
each value came from and conflicts listing every field where the two differ,
both values included. Both stores also come back verbatim as info and xmp.
When has_conflicts is true, say so rather than quoting one value as fact.
Args: ref: PDF file path, or a workspace artifact id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |