pdfGetEmbeddedFileMem
Get an embedded file in a memory buffer.
char *pdfGetEmbeddedFileMem(PDFHandle pdf, 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 pdfGetNumEmbeddedFiles
).
The caller is responsible for calling pdfFreeMemory
on the
returned buffer (if not NULL).
C:
char *buf;
int size;
buf = pdfGetEmbeddedFileMem(pdf, i, &size);
...
pdfFreeMemory(buf);