chickadee » pdfa » set-document-info!

set-document-info! PDFA-DOC #!key TITLE AUTHOR SUBJECT KEYWORDS CREATORprocedure

Records the document's descriptive properties, all strings. CREATOR is the name of the application that produced the content; the producer is always recorded as this egg. The values are written twice, as the /Info dictionary and as the XMP packet, and PDF/A requires the two copies to agree, so:

  • fields given as #f or "" are left out of both;
  • non-ASCII text is allowed: /Info values are written as UTF-16 and the XMP packet as UTF-8;
  • a value that is not a string, or that contains a control character other than tab, line feed or carriage return, is an error, since XML cannot represent such characters.

The creation date is set automatically when the document is written.