Copy link to clipboard
Copied
Hi All,
Need your help. I am trying to find out current if its possible to input current user name in a text box once I enter the text box. As per below link I have prepared the file but not able to understand where should I save the file and what will be the file name.
How to Display Windows Username in a PDF File?
As as per below mentioned link when I have try Try to run javascript console for code mentioned in the link I got error. Code is as followed - "app.getPath("user","javascript");". I am getting error as "undefined ".
But I am not getting any error response for next syntax "app.getPath("app","javascript");"
https://acrobatusers.com/tutorials/folder_level_scripts
please help and advise mw when can i save java script file as that I can received proper response.
Thank you
pC
Copy link to clipboard
Copied
What version of Adobe Acrobat?
Copy link to clipboard
Copied
I am using Adobe pro XI and acrobat reader
Copy link to clipboard
Copied
app.getPath("app","javascript"); : Acrobat will return the path of the "JavaScripts" app's folder, which is mandatory.
app.getPath("user","javascript"); : Acrobat will return the path of the "JavaScripts' user's folder, which is optional ( = "undefined" if it does not exist).
This free tool should helps you, Show_me_the_path : https://www.abracadabrapdf.net/utilitaires/utilities-in-english/pdf-utilities/show_me_the_path-en/
Copy link to clipboard
Copied
app.getPath("user","javascript"); : Acrobat will return the path of the "JavaScripts' user's folder, which is optional ( = "undefined" if it does not exist).
If I get above error then do I need to save file in particular path
Copy link to clipboard
Copied
system won't allow me to do changes as I don't have administrator access for below
app.getPath("app","javascript"); : Acrobat will return the path of the "JavaScripts" app's folder, which is mandatory.
Please advise me where to do changes for below one
app.getPath("user","javascript"); : Acrobat will return the path of the "JavaScripts' user's folder, which is optional ( = "undefined" if it does not exist).
Copy link to clipboard
Copied
We can't help you solve permissions issues. You need to talk to the admin
of your computer.
Copy link to clipboard
Copied
Please advise me where to do changes for below one
I cannot since I'm a Mac user (paths are not the same)
You should say what is the version of your Windows and another expert could help you further.
Copy link to clipboard
Copied
I am using windows 7
Copy link to clipboard
Copied
system won't allow me to do changes as I don't have administrator access for below
This is why the user folder exists.
Copy link to clipboard
Copied
path please in virtual machine.
Copy link to clipboard
Copied
please advise me on user folder path. I am using windows 7. I am on thine client.
Copy link to clipboard
Copied
If you had used my utility you would have this path already: https://www.abracadabrapdf.net/utilitaires/utilities-in-english/pdf-utilities/show_me_the_path-en/
Copy link to clipboard
Copied
For Acrobat Reader DC the path is:
\Users\{user}\AppData\Roaming\Adobe\Acrobat\Privileged\DC\Javascripts
Find more inspiration, events, and resources on the new Adobe Community
Explore Now