These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Computer & User Name (Environment Variables)

pratthinds
Registered: Dec 5 2007
Posts: 4

How can I automatically place the Computer Name and Windows User Name in a text field?

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The computer name isn't available from Acrobat JavaScript, and the user's name is only accessible through a privileged object.

If this a script that needs to be in a PDF, then it really can't be done. However, if you can place it in a Folder Level Script, you can get the user's name from the "identity" object.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script