Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Get the file path for a file that already exists into Acrobat.com cloud

$
0
0

It seems that for the Adobe Acrobat application (less 11 version) the option of uploading files to Acrobat.com cloud it's by default activated.

Because of that, in the moment I am opening a file that was in advance uploaded in the cloud I get the next full path: "Acrobat.com: myFile.pdf" or "/Acrobat.com/959aa38a-5fce-40ba-9e3a-da241e90bfa4/0d85fd7d-b5cc-4c04-a732-8eada851ee80/My File.pdf"

The code I am using is:

PDDoc pdDoc = AVDocGetPDDoc(doc);

ASFile fileinfo = PDDocGetFile(pdDoc);

ASFileSys fileSys = ASFileGetFileSys(fileinfo);

ASPathName pathname = ASFileAcquirePathName(fileinfo);

 

char* szFilePath = ASFileSysDisplayStringFromPath(fileSys, pathname);

// szFilePath = "Acrobat.com: myFile.pdf"

char* szFilePath2 = ASFileSysDIPathFromPath(fileSys, pathname, pathname);

// szFilePath2 = "/Acrobat.com/959aa38a-5fce-40ba-9e3a-da241e90bfa4/0d85dd7d-b5cc-4c04-a732-8ecda851ee80/K ynesys-Visma.pdf"
// .... 

Is it a way to get the local temporary file full path out of these methods? ASFileAcquirePathName() works perfect for local files, out of Acrobat.com.
Otherwise is it a way to "download" the file into a local path?
I need to get the local location in order to proceed a Windows shell copy operation.  


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>