xpdfSpliceSaveEmbeddedFile
Save an embedded file.
int xpdfSpliceSaveEmbeddedFile(XpdfSpliceInputHandle in, int idx, char *fileName)
This function saves the specified embedded file to disk.
Embedded files are numbered 0 through n-1 (where n is the value
returned by xpdfSpliceGetNumEmbeddedFiles
).
The xpdfSpliceSaveEmbeddedFile
function returns non-zero
if successful, otherwise zero.
C:
if (xpdfSpliceSaveEmbeddedFile(in, i, "test.pdf") != pdfOk) {
/* handle the error */
}