pdfGetEmbeddedFileName
Get the name of an embedded file.
char *pdfGetEmbeddedFileName(PDFHandle pdf, 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 pdfGetNumEmbeddedFiles
).
The file name is converted according to the current text encoding (see
pdfSetTextEncoding
).
The caller is responsible for freeing the name string after using it,
by calling pdfFreeMemory
.
C:
char *name;
int length;
name = pdfGetEmbeddedFileName(pdf, i, &length);
...
/* use [length] bytes at [name] */
...
pdfFreeMemory(name);