pdfGetInfoFieldName

Get the name of a specified info field.
char *pdfGetInfoFieldName(PDFHandle pdf, int idx)
This function returns the name of the idxth field in the info dictionary. It can be used with pdfGetNumInfoFields and pdfGetInfoString to scan through the all of the entries in the info dictionary.

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

C:
char *name, *val; int n, i; n = pdfGetNumInfoFields(pdf); for (i = 0; i < n; ++i) { name = pdfGetInfoFieldName(pdf, i); val = pdfGetInfoString(pdf, name, &length); printf("%s: %s\n", name, val); pdfFreeMemory(val); pdfFreeMemory(name); }
pdfGetNumInfoFields
pdfGetInfoString