Copy link to clipboard
Copied
How to auto print Filename at page tail?
Thank you!
Just likes when printing documents, the web site link address will be shown or not be shown at the bottom of the page.
If you want to automate the entire process (so you don't have to manually add the text box each time) take a look at addField(); in the JS_API_Reference manual.
There example is how to add a navi button to each page, but is straight forward enough modify it to add a textbox field to the bottom of each page with Try67's code to pull in the file name.
Thanks
Doug
Copy link to clipboard
Copied
You can add a print-only text field that contains the file-name using a simple script.
Copy link to clipboard
Copied
Could you please make a example Script for printing test?
Thank you!
Copy link to clipboard
Copied
Create a text field called "FileName", set it as Hidden, but Printable and then go to Tools - JavaScript - Set Document Actions and as the Will Print event enter this code:
this.getField("FileName").value = this.documentFileName;
Copy link to clipboard
Copied
If you want to automate the entire process (so you don't have to manually add the text box each time) take a look at addField(); in the JS_API_Reference manual.
There example is how to add a navi button to each page, but is straight forward enough modify it to add a textbox field to the bottom of each page with Try67's code to pull in the file name.
Thanks
Doug
Find more inspiration, events, and resources on the new Adobe Community
Explore Now