<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hi everybody!<br>
<br>
Lilypond creates PDFs with the following metadata keys mentioned in
Adobe's PDF Reference: Creator, Title, Subject, Keywords, ModDate,
Author.<br>
<br>
In addition, we use other self-defined metadata keys: Subtitle,
Composer, Arranger, Poet, Copyright. This does not contradict the
PDF specification, because at the end of the first paragraph on page
550 of
<a class="moz-txt-link-freetext" href="https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf">https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf</a>
it reads:<br>
<blockquote>"New keys should be chosen with care so that they make
sense to users."<br>
</blockquote>
Keys not mentioned in the standard are therefore considered
explicitly allowed, and it is no problem to use them in PDF
documents created with Ghostscript from PS.<br>
<br>
Cairo unfortunately does not provide a way to use metadata keys
other than those mentioned in the specification, but after a look at
the Cairo source code a patch seems trivial if it is just to support
a few additional keys by defining some more members of
cairo_pdf_metadata_t plus some related code to handle those new
keys.<br>
<br>
The alternative would be a patch that allows the use of arbitrary
keys. This could be done. in a new function named e.g.
cairo_pdf_surface_set_nonstandard_metadata ().<br>
<br>
What is the opinion of the Cairo community?<br>
<br>
Knut<br>
<br>
</body>
</html>