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:
pdf.saveEmbeddedFile i, "test.pdf"
getNumEmbeddedFiles
getEmbeddedFileName