How to get access to temp folder

Community Beginner ,
Jul 22, 2019

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 ?

TOPICS
Acrobat SDK and JavaScript

Views

218

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to get access to temp folder

Community Beginner ,
Jul 22, 2019

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 ?

TOPICS
Acrobat SDK and JavaScript

Views

219

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 22, 2019 0
Most Valuable Participant ,
Jul 22, 2019

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 22, 2019 0
Adobe Employee ,
Jul 22, 2019

Copy link to clipboard

Copied

ASFileSysGetTempPathName()

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 22, 2019 2
Community Beginner ,
Jul 24, 2019

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 ?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 24, 2019 0
Most Valuable Participant ,
Jul 24, 2019

Copy link to clipboard

Copied

Use the system API to locate the temp folder. You can then use Acrobat APIs to write files there.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 24, 2019 0
Community Beginner ,
Jul 24, 2019

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 24, 2019 0
Community Beginner ,
Jul 24, 2019

Copy link to clipboard

Copied

I need to make cross platform path to temp folder

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 24, 2019 0
Most Valuable Participant ,
Jul 24, 2019

Copy link to clipboard

Copied

Conditional compilation. There are only two platforms to worry about.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 24, 2019 2
Community Beginner ,
Jul 24, 2019

Copy link to clipboard

Copied

Thank you for the answers!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 24, 2019 0