AVDocOpenFromFile cannot open file under C:/user/localadmin

New Here ,
Dec 06, 2020 Dec 06, 2020

Copy link to clipboard

Copied

Dear All,

 

I cannot open file by using AVDocOpenFromFile, if the file is under C:/user/localadmin. But it can open file if I added "Everyone" into the security of directory - localadmin. Anyone has the idea about it?

 

Thanks and best regards,

Tony

 

li0D4C_1-1607302765121.png

 

TOPICS
Acrobat SDK and JavaScript

Views

75

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
community guidelines
Most Valuable Participant ,
Dec 09, 2020 Dec 09, 2020

Copy link to clipboard

Copied

Can you open it is the UI without changing the security?

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
community guidelines
New Here ,
Dec 13, 2020 Dec 13, 2020

Copy link to clipboard

Copied

Yes. I can open it if not use AVDocOpenFromFile.

thanks,

tony

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
community guidelines
Most Valuable Participant ,
Dec 14, 2020 Dec 14, 2020

Copy link to clipboard

Copied

Is Protected Mode on? 

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
community guidelines
New Here ,
Dec 14, 2020 Dec 14, 2020

Copy link to clipboard

Copied

In perference -> enabled protectd mode at startup 

Protected view is All files.

off Run in AppContainer.

 

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
community guidelines
Most Valuable Participant ,
Dec 14, 2020 Dec 14, 2020

Copy link to clipboard

Copied

This sounds as if it is designed behaviour. Most files cannot be opened from code in Protected Mode. Open it first in the UI, then try running the code.

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
community guidelines
New Here ,
Dec 14, 2020 Dec 14, 2020

Copy link to clipboard

Copied

Actually I don't understand what is "Open it first in the UI"?

 

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
community guidelines
Most Valuable Participant ,
Dec 14, 2020 Dec 14, 2020

Copy link to clipboard

Copied

The UI is just the menus and buttons of Acrobat.

So, first open the file using File > Open. Then close it. Now see if your code works correctly. If it works, this is the normal function of the Sandbox, blocking access to files.

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
community guidelines
New Here ,
Dec 14, 2020 Dec 14, 2020

Copy link to clipboard

Copied

LATEST

If use UI, it can open it. But use API, can not open. Do you have other solution for that?

 

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
community guidelines