xpdfSpliceGetInfo
Get a document information dictionary entry from an input PDF file.
char *xpdfSpliceGetInfo(XpdfSpliceInputHandle in, char *key, int *length)
This function retrieves a document information dictionary entry from
an input PDF file. The entry specified by
key
is
returned, with *length
set to the string length. If
there is no info entry for key
, this function returns
NULL.
Standard info dictionary keys include: Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate, and Trapped.
The caller is responsible for freeing the returned pointer after using
it, by calling xpdfSpliceFreeMemory
.
C:
char *title;
int length;
title = xpdfSpliceGetInfo(in, "Title", &length);
...
xpdfSpliceFreeMemory(title);