pdfGetNumInfoFields
Get the number of document info fields available in the PDF file.
int pdfGetNumInfoFields(PDFHandle pdf)
This function returns the total number of fields in the PDF
info dictionary. It can be used with
pdfGetInfoFieldName
and pdfGetInfoString
to scan through the all of the entries
in the info dictionary.
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);
}