next up previous contents index
Next: Upon Opening a Document Up: Document Information and Metadata Previous: Reading Document Information   Contents   Index


Setting Document Information

The document information dictionary in a PDF file specifies various pieces of information about a PDF. These can be consulted in a PDF viewer (for instance, Acrobat).

Here is a summary of the commands for setting entries in the document information dictionary:



(The details of the format for creation and modification dates can be found in Appendix [*]. Using the date "now" uses the time and date at which the command is executed.)


For example, to set the title, the full command line would be

The text string is considered to be in UTF8 format, unless the -raw option is added--in which case, it is unprocessed, save for the replacement of any octal escape sequence such as \017, which is replaced by a character of its value (here, 15).



root 2014-11-28