Write the metadata
set-metadata writes the eight standard document information fields. A field you leave out keeps its value.
<title>, and LibreOffice from the document’s properties; set-metadata overrides them.
Read the metadata
PDF.metadata() answers the same eight fields, each when set, under each PDF’s name. A PDF without metadata answers {}.
D:20260101120000Z), which set-metadata takes, or an XMP date (2026-01-01T12:00:00Z) when only the XMP metadata holds it.
Bookmarks
set-bookmarks replaces the bookmarks, the outline viewers show beside the pages. Each bookmark takes a title, a pageNumber, and optional children.
PDF.bookmarks() reads them back in the same shape:
nativeBookmarks: true on a Chromium conversion (from the headings), or keep LibreOffice’s default nativeBookmarks.
See Reference — PDF.