How to auto print Filename at page tail?
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.
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.
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;
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
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.