xpdfSpliceGetEmbeddedFileMem

Get an embedded file in a memory buffer.
char *xpdfSpliceGetEmbeddedFileMem(XpdfSpliceInputHandle in, int idx, int *size)
This function returns a memory buffer with the contents of the specified embedded file. It returns NULL on error.

Embedded files are numbered 0 through n-1 (where n is the value returned by xpdfSpliceGetNumEmbeddedFiles).

The caller is responsible for calling xpdfSpliceFreeMemory on the returned buffer (if not NULL).

C:
char *buf; int size; buf = xpdfSpliceGetEmbeddedFileMem(in, i, &size); ... xpdfSpliceFreeMemory(buf);
xpdfSpliceGetNumEmbeddedFiles
xpdfSpliceGetEmbeddedFileName
xpdfSpliceSaveEmbeddedFile
xpdfSpliceSaveEmbeddedFileW
xpdfSpliceFreeMemory