xpdfSpliceGetEmbeddedFileName
Get the name of an embedded file.
char *xpdfSpliceGetEmbeddedFileName(XpdfSpliceInputHandle in, int idx, int *length)
This function returns the name of an embedded file. The returned value
is a null-terminated string, and its length is also stored
in
*length
.
Embedded files are numbered 0 through n-1 (where n is the value
returned by xpdfSpliceGetNumEmbeddedFiles
).
The file name is converted according to the current text encoding.
The caller is responsible for freeing the name string after using it,
by calling xpdfSpliceFreeMemory
.
C:
char *name;
int length;
name = xpdfSpliceGetEmbeddedFileName(in, i, &length);
...
/* use [length] bytes at [name] */
...
xpdfSpliceFreeMemory(name);