Skip to main content
dipu800
Participating Frequently
July 6, 2017
Question

User id details auto populated

  • July 6, 2017
  • 2 replies
  • 2975 views

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

This topic has been closed for replies.

2 replies

JR Boulay
Community Expert
Community Expert
July 6, 2017

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/

Acrobate du PDF, InDesigner et Photoshopographe
dipu800
dipu800Author
Participating Frequently
July 6, 2017

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).

Bernd Alheit
Community Expert
Community Expert
July 7, 2017

please advise me on user folder path. I am using windows 7. I am on thine client.


For Acrobat Reader DC the path is:

\Users\{user}\AppData\Roaming\Adobe\Acrobat\Privileged\DC\Javascripts

Bernd Alheit
Community Expert
Community Expert
July 6, 2017

What version of Adobe Acrobat?

dipu800
dipu800Author
Participating Frequently
July 6, 2017

I am using Adobe pro XI and acrobat reader