pdfGetProducer

Get the document producer.
char *pdfGetProducer(PDFHandle pdf, int *length)
This function retrieves the value of the Producer field. The returned value is a null-terminated string, and its length is also stored in *length.

Returns NULL if the requested entry doesn't exist in the info dictionary.

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

This function is equivalent to:

pdfGetInfoString(pdf, "Producer", length);
C:
char *s; int length; s = pdfGetProducer(pdf, &length); if (s) { printf("producer = %s\n", s); } else { printf("no producer\n"); } pdfFreeMemory(s);
pdfGetInfoString
pdfGetTitle
pdfGetSubject
pdfGetKeywords
pdfGetAuthor
pdfGetCreator