Bates numbering with Javascript
Copy link to clipboard
Copied
I know that Adobe has built in bates numbering but i need a little more, so is it possible to apply bates numbering with javascript?
Copy link to clipboard
Copied
No, there is no interface from JavaScript to this feature. You can implement a Bates "lookalike" in JavaScript, but you cannot use the actual Bates numbering feature in Acrobat from JavaScript.
Copy link to clipboard
Copied
The Add Bates Numbering command inserts a (hidden) textual layer to the file, called "Headers/Footers". If you use JS's addWatermarkFromText command you can effectively achieve exactly the same result, only under a different layer name (called "Watermark"). Of course, you will have to specify the string to add and we as its location and appearance options yourself, but it means you'll have much more control over it and could do things that are not possible with the built-in command (for example, you could add the file's name automatically into it).
I've actually create a (paid-for) tool that does something very similar. You can find it here: http://try67.blogspot.com/2014/02/acrobatreader-advanced-add-headerfooter.html
You can also get it from my new web-site, where's there's currently a "soft launch" sale (The discount code is available on the front-page):
https://www.try67.com/tool/acrobat-reader-advanced-add-header-footer-text

