Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

User id details auto populated

New Here ,
Jul 05, 2017 Jul 05, 2017

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

TOPICS
PDF forms
2.8K
Translate
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
Community Expert ,
Jul 05, 2017 Jul 05, 2017

What version of Adobe Acrobat?

Translate
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 ,
Jul 06, 2017 Jul 06, 2017

I am using Adobe pro XI and acrobat reader

Translate
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
Community Expert ,
Jul 06, 2017 Jul 06, 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
Translate
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 ,
Jul 06, 2017 Jul 06, 2017

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

Translate
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 ,
Jul 06, 2017 Jul 06, 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).

Translate
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
Community Expert ,
Jul 06, 2017 Jul 06, 2017

We can't help you solve permissions issues. You need to talk to the admin

of your computer.

Translate
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
Community Expert ,
Jul 06, 2017 Jul 06, 2017
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.


Acrobate du PDF, InDesigner et Photoshopographe
Translate
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 ,
Jul 06, 2017 Jul 06, 2017

I am using windows 7

Translate
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
Community Expert ,
Jul 06, 2017 Jul 06, 2017

system won't allow me to do changes as I don't have administrator access for below

This is why the user folder exists.


Acrobate du PDF, InDesigner et Photoshopographe
Translate
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 ,
Jul 06, 2017 Jul 06, 2017

path please in virtual machine.

Translate
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 ,
Jul 06, 2017 Jul 06, 2017

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

Translate
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
Community Expert ,
Jul 07, 2017 Jul 07, 2017

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/


Acrobate du PDF, InDesigner et Photoshopographe
Translate
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
Community Expert ,
Jul 07, 2017 Jul 07, 2017
LATEST

For Acrobat Reader DC the path is:

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

Translate
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