Apart from some experience of batch processing Excel files using VBA to automate pdfdistiller, I am new to Acrobat scripting.
I am currently trying to automate the tasks I run using Batch Processing, and whilst I have figured out how to insert additional pages and create a watermark, I have yet to successfully figure out how to add page numbers in the footer area.....
EX = "this.setpagelabels (0, [""D"", """", 1]);"
Set AForm = CreateObject("AFormAut.App") 'from AFormAPI
However, whilst this code doesn't error, it doesn't add the desired page numbers to the saved pdf document.
This function doesn't add page numbers in the footer area. It set or modify the page lables.
To put a page number on the buttom of a page, you will need to use the watermark or add a form field and set the default value of the field to the page number of the field adjusted for the zero based value.
Thank you both, I will have a go at scripting a form field.