Copy link to clipboard
Copied
Hi , I wonder , is there any possible way to write files to the system temporary folder with the help of Acrobat SDK ? If yes , what methods allow do that ?
Copy link to clipboard
Copied
You can write files anywhere Acrobat can write them. You may need to use the system API to locate the temporary folder first.
Copy link to clipboard
Copied
ASFileSysGetTempPathName()
Copy link to clipboard
Copied
Thank you for the help! This method works fine, but can I write files not only with *.tmp extension with this method ? For example I want to write *.txt file in temp path ?
Copy link to clipboard
Copied
Use the system API to locate the temp folder. You can then use Acrobat APIs to write files there.
Copy link to clipboard
Copied
So, there is no option to do custom(*.txt, and so on ) temp files through Adobe acrobat api? Because ASFileSysGetTempPathName() autogenerates the temp file with *.tmp extension
Copy link to clipboard
Copied
I need to make cross platform path to temp folder
Copy link to clipboard
Copied
Conditional compilation. There are only two platforms to worry about.
Copy link to clipboard
Copied
Thank you for the answers!