Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Bates numbering with Javascript

Community Beginner ,
Dec 16, 2020 Dec 16, 2020

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?

TOPICS
How to , JavaScript
790
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2020 Dec 17, 2020

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. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2020 Dec 17, 2020
LATEST

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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines