How can I add to the footer of a pdf in a batch process the "filename & extension, also Page ? of ?"? I have been able to add Page ? of ? in footers using batch but would like to use the filename and page # in one batch process. I am at a loss trying to do what I thought would be simple.
Since File Name isn't in the default tools you'll need to add it with JavaScript. Unfortunately this is not a one line operation. Read this artical
[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/page_bounds/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/page_bounds/[/url]
It has code in it for adding a form field to a document. Since you want it on the footer on every page you'll need to write a loop like this. Make the field name the same on all pages.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script