saveEmbeddedFile

Save an embedded file.
saveEmbeddedFile([in] int idx, [in] BSTR 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 getNumEmbeddedFiles).

The saveEmbeddedFile throws an error if the embedded file cannot be saved.

VB6:
n = viewer.getNumEmbeddedFiles For i = 0 To n-1 name = viewer.getEmbeddedFileName(i) ... viewer.saveEmbeddedFile i, "c:/file.pdf" Next i
getNumEmbeddedFiles
getEmbeddedFileName