Currently I have developed a plugin that can extract files from portfolios using:-
PDNameTree tree = PDDocGetNameTree(pdDoc, ASAtomFromString("EmbeddedFiles"));
But i've noticed with Outlook email created portfolios the above is PDNameTree invalid. any suggestions? is it under another atom string or something?
ok, found something out here... if I close the doc using AVDocClose then re-open in the code using PDDocOpen then the PDNameTree tree = PDDocGetNameTree(pdDoc, ASAtomFromString("EmbeddedFiles")); works!!!
but now I have a problem getting the original pdf open filename.
usually can get it with below code but it's returning the Folder path + garbage instead. (this only happens with portfolios created by outlook that I have tested)
There must be a better way of doing this, any ideas? thanks, lee.
|ASFile asFile = PDDocGetFile(pdDoc);|
|ASPathName asPathName = ASFileAcquirePathName(asFile);|
char* temp = ASFileSysDIPathFromPath(ASGetDefaultFileSys(), asPathName, NULL);