The Last(?) Word
I have now accepted @MatthewLeingang's answer. This directs me to the hyperxmp
package, which appears to be the simplest solution (for me as a very-end user). The fact that this doesn't work in my workflow and environment isn't Matthew's fault.
To chase the rest of my problem, which appears to involve a conflict with memoir
, readers may be interested in this spin-off question.
Thank you all again for your help.
Progress Update 1:
First, flouting convention, my sincere thanks to all who have answered or commented (duly upvoted). Special thanks to @diabonas, whose sample PDF does indeed contain a copyright notice.
However, there may be a clue here: while his PDF says this:
PDF Producer: XeTeX 0.9997
mine says this:
PDF Producer: xdvipdfmx (0.7.8)
Now, I'm processing it with XeLaTeX via latexmk
, but to keep myself honest, I re-did it with just XeLaTeX, with the same result.
Progress Update 2:
Here's an MWE that fails, and gives "PDF Producer: xdvipdfmx (0.7.8)":
% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode
\documentclass{memoir}
\usepackage{lipsum}
\usepackage{hyperref}
\usepackage{hyperxmp}
\hypersetup{
pdfauthor={Brent Longborough},
pdftitle={O Hai},
pdfcopyright=Copyright © 2012 by Brent Longborough. All rights reserved.}
\begin{document}
\lipsum[1]
\end{document}
By just changing the document class to article, we get "PDF Producer: XeTeX 0.9997", and the copyright notice appears!
Original Question:
Using XeLaTeX. I want to add two pieces of metadata to a PDF: copyrighted status and the copyright notice.
I'm already using hyperref
in the document, and I have no special worries about "overheads", only about keeping the workflow simple.
On the principle of "monkey see, monkey do", I tried this to no avail:
\hypersetup{%
pdfinfo={%
CopyrightStatus={Copyrighted},
CopyrightNotice={Copyright © 2012 by Brent Longborough}
}
}
So far, I have been unable to find the correct tag names, or to discover even whether I have a chance.
All suggestions are welcome, but I'd especially like a pointer to the book of tag names for PDF metadata.
The answers and comments from Martin and EGreg deserve some additional explanation on my part.
My PDF reader is PDF Xchange Viewer from Tracker Software. When I view the Document Properties, and select the "Additional Metadata..." button, a [third] window appears in which there appear a dropdown labelled "Copyright Status:", with options "Unknown", "Copyrighted", and "Public Domain"; and a text box labelled "Copyright Notice:":
So you can see the source of my half-blind groping for metadata tags...
So, I guess what I'm really asking is "What tag names should I be using to fill in these fields?"
After hacking at the PDF (using @egreg's tip and then the viewer itself), I found the Copyright stuff in some RDF dc: namespace. I have since tried using the hyperxmp package, but without success (nothing shows up in the PDF), and I suspect that may be because it only works for pdfLaTeX.
I have also tried @MatthewLeingang's answer, but can confirm that it definitely requires pdfLaTeX, and I really don't want to go back.
xdvipdfmx
adds the info to the PDF dictionary; you can see it if you callxelatex -output-driver="xdvipdfmx -z 0" file
, which sets compression level to 0, and then look at the PDF file. How to use this information is perhaps beyond the scope of this site.:)