You can get and set PDF document metadata corresponding to a document's Info dictionary.
You can also get and set the XMP metadata associated with a PDF or PostScript document. See the Working with XMP Metadata section for more information about the XMP metadata support in PDF and PostScript.