pdfGetMetadata

Get the document-level metadata stream.
char *pdfGetMetadata(PDFHandle pdf, int *length)
This function retrieves the document-level metadata, i.e., the metadata stream from the PDF file's catalog object.

Returns NULL if there is no metadata.

The caller is responsible for freeing the data after using it, by calling pdfFreeMemory.

C:
char *metadata; int length; metadata = pdfGetMetadata(pdf, &length); ... pdfFreeMemory(metadata);