How to Print the Name of the User Who Printed a PDF
Question details
The user wants to automatically include the name of the person printing the PDF, along with the print date, on the physical printout.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Printing a PDF document in an environment where tracking who printed the file and when it was printed is necessary.
- Observed behavior
- Adobe Acrobat does not natively support adding the printer's user name as a standard form value during the printing process.
Check if your organization allows custom JavaScript execution in PDF viewers, as the automated workaround requires modifying local script files and security settings.
Implement a Custom JavaScript Workaround
Use Acrobat JavaScript to capture and set the user name in a custom form field before printing.
Adobe Acrobat does not natively capture the user's name for printing. However, you can create a custom text field (e.g., 'Printed By') and use Acrobat JavaScript to populate it.
Note that this script must be installed locally on every user's machine and may be restricted by your IT department's security policies.
Open your PDF form in Acrobat, enter Form Editing mode, and add a custom text field named 'PrintedBy' where you want the name to appear.
Create a JavaScript file (.js) that uses the 'identity.loginName' object to capture the current user's system login name.
Set the document's 'Will Print' action to execute the script, which will dynamically populate the 'PrintedBy' text field right before the document is sent to the printer.
Place this JavaScript file into the Acrobat 'JavaScripts' folder on every user's local machine so the application can read it.

Submit a Feature Request to Adobe
Request native support for automatic user name printing directly from Adobe Engineering.
Manually Add User Name and Date Before Printing with WPS Office
Since automatic user name scripting in PDFs is complex and heavily restricted by security policies, the most reliable method is manually inserting a custom text box, header, or watermark before printing. WPS PDF provides intuitive editing tools to easily add this information.
- 1. Open your PDF: Launch WPS Office and open the PDF document you need to print.
- 2. Insert a text box or watermark: Navigate to the 'Insert' tab and select 'Text Box' or 'Watermark'.
- 3. Type your credentials: Enter 'Printed by: [Your Name]' and the current date, then position the text anywhere on the page.
- 4. Print the document: Go to 'Menu' > 'Print' or press Ctrl+P to print your customized document with the user name clearly visible.

Frequently Asked Questions
Why doesn't Adobe Acrobat print the user's name automatically?
Acrobat does not include the printer's username as a standard form variable due to document privacy and security restrictions. Standard PDF specifications do not dynamically pull local OS credentials during the print process without advanced local scripting.
Can I add the print date automatically without using JavaScript?
Standard PDF viewers do not dynamically add the current date to the page content upon printing out of the box. You must use JavaScript configured to the 'Will Print' action, or manually add a text field with the date before printing.
Where do I install folder-level JavaScripts in Acrobat?
Folder-level scripts must be placed in the Acrobat application's 'JavaScripts' directory on the local hard drive. Accessing and modifying this folder usually requires administrator privileges.




