getMetadata

Get the document-level metadata stream.
getMetadata([out, retval] BSTR *val)
This function retrieves the document-level metadata, i.e., the metadata stream from the PDF file's catalog object.

Returns an empty string if there is no metadata.

VB6:
metadata = pdf.getMetadata