Rendro.Metadata (Rendro v1.0.0) (stable)

Copy Markdown View Source

Input metadata for a rendered PDF document.

Passed to Rendro.metadata/1 to set title, author, creator, and custom key-value pairs in the PDF document info dictionary. All fields are optional.

The custom field accepts an open map of atom() => term() pairs (additive contract — new keys may be added by the caller without version friction).

Summary

Types

t()

@type t() :: %Rendro.Metadata{
  author: String.t() | nil,
  creation_date: DateTime.t() | nil,
  creator: String.t() | nil,
  custom: %{optional(atom()) => term()},
  modification_date: DateTime.t() | nil,
  title: String.t() | nil
}