PDF Printing Issues

How to Print the Name of the User Who Printed a PDF

Maira MehtabMaira Mehtab Nov 5, 2026 869 views

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.

How to Print the Name of the User Who Printed a PDF
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.
Before you start

Check if your organization allows custom JavaScript execution in PDF viewers, as the automated workaround requires modifying local script files and security settings.

Solution 1Recommended

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.

1
Create a custom text field

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.

2
Write a folder-level script

Create a JavaScript file (.js) that uses the 'identity.loginName' object to capture the current user's system login name.

3
Configure document actions

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.

4
Deploy the script

Place this JavaScript file into the Acrobat 'JavaScripts' folder on every user's local machine so the application can read it.

Implement a Custom JavaScript Workaround
Security Limitations: Folder-level scripts require elevated privileges to install. Many enterprise environments disable JavaScript in Acrobat by default to prevent malicious code execution.

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. 1. Open your PDF: Launch WPS Office and open the PDF document you need to print.
  2. 2. Insert a text box or watermark: Navigate to the 'Insert' tab and select 'Text Box' or 'Watermark'.
  3. 3. Type your credentials: Enter 'Printed by: [Your Name]' and the current date, then position the text anywhere on the page.
  4. 4. Print the document: Go to 'Menu' > 'Print' or press Ctrl+P to print your customized document with the user name clearly visible.
Easily add text boxes, headers, or watermarks to any PDF document prior to printingFully compatible with standard Adobe PDF formats and form fieldsLightweight application with fast rendering and printing performanceFree basic PDF viewing, commenting, and printing capabilities
microsoft office alternative - wps office

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.