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
Copy link to clipboard
Copied
Can you open it is the UI without changing the security?
Copy link to clipboard
Copied
Yes. I can open it if not use AVDocOpenFromFile.
thanks,
tony
Copy link to clipboard
Copied
Is Protected Mode on?
Copy link to clipboard
Copied
In perference -> enabled protectd mode at startup
Protected view is All files.
off Run in AppContainer.
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.
Copy link to clipboard
Copied
Actually I don't understand what is "Open it first in the UI"?
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.
Copy link to clipboard
Copied
If use UI, it can open it. But use API, can not open. Do you have other solution for that?