How to Automate Adobe PDF Printing with a Custom File Name
Question details
The user is looking to automate the Adobe PDF printer output to apply specific configurations like A4 paper size, Fit to Page, and separation mode, while automatically assigning a custom file name based on the original PDF.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Automating print workflows and customizing output file naming conventions without manual intervention.
- Observed behavior
- Acrobat JavaScript cannot fully control the Adobe PDF printer's output file name and lacks the ability to simultaneously apply all specific printer settings natively.
Ensure you have Adobe Acrobat Pro installed, as standard PDF readers do not support advanced PostScript conversions or the Print Production Preflight tools required for this automation.
Use a PostScript Workflow to Control the Output File Name
Since Acrobat JavaScript cannot directly specify the print file name for the Adobe PDF printer, saving the document as a PostScript file first allows you to define the file name before converting it back to PDF.
This workaround circumvents the limitations of the Adobe PDF printer driver by separating the print configuration from the PDF generation process.
Open your PDF, go to 'File' > 'Save As', and select 'PostScript (*.ps)' as the format. Here, you can specify your custom file name.
In the Save As dialog, click 'Settings' to configure your required output options, such as A4 paper, Fit to Page, and separation mode.
Open the resulting PostScript file with Adobe Acrobat or Distiller. The software will automatically convert the .ps file back into a PDF, retaining your specific print settings and the custom file name you assigned.

Automate Separation Processing via the Preflight Tool
If your primary goal is to automate separation-related processing, the Preflight tool is a more reliable and programmable alternative to standard JavaScript printing.
Handle PDF Printing and Document Editing Easily with WPS Office
If complex script-based automation feels restrictive, WPS Office offers a highly intuitive and powerful toolkit. As a lightweight, full-featured suite, it allows you to effortlessly manage PDF printing, formatting, and file conversions alongside your standard Word, Excel, and PowerPoint files.

Frequently Asked Questions
Why can't Acrobat JavaScript specify the output file name for the Adobe PDF Printer?
Due to security restrictions and system architecture, Acrobat JavaScript does not have the administrative permission to bypass the OS-level save dialog to silently write files via the virtual printer driver.
What is a PostScript file (.ps) and why is it used here?
A PostScript file is a page description language format. Saving to PostScript retains all your complex page layouts, scaling, and color separation settings while allowing programmatic control over the file name before it is distilled back into a standard PDF.
Can I batch process these PDF printing automations?
Yes. You can use the Action Wizard in Adobe Acrobat Pro to apply PostScript saving protocols or custom Preflight profiles across multiple PDF files simultaneously, greatly speeding up your workflow.




