xpdfSpliceSaveEmbeddedFileW
Save an embedded file with a Unicode file name.
// Windows only
int xpdfSpliceSaveEmbeddedFileW(XpdfSpliceInputHandle in, int idx, wchar_t *fileName)
This function saves the specified embedded file to disk.
This function is identical to xpdfSpliceSaveEmbeddedFile
, except that it
takes a Unicode file name.
Embedded files are numbered 0 through n-1 (where n is the value
returned by xpdfSpliceGetNumEmbeddedFiles
).
The xpdfSpliceSaveEmbeddedFileW
function returns non-zero
if successful, otherwise zero.
This function is only available on Windows.
C:
if (xpdfSpliceSaveEmbeddedFileW(in, i, L"test.pdf") != pdfOk) {
/* handle the error */
}