I am attempting to automate the process of adding a "Back to Index" button on the first page of each section of my PDF. All the pages I want to add the button to are bookmarked. I do know that you can duplicate a button on all pages, but really I only want the button on the FIRST page of each section.
Is this even possible? If so, could someone guide me along they way with some pre-written scripts?
Or is there an easier way to do this?
I appreciate any help!
Code can be written to navigate to every bookmark and add the button onto the current page.
var rctButton = [...coords of button on page...];
var fld = this.addField("BackButt","button",this.pageNum, rctButton);
fld.setAction("MouseUp","this.pageNum = 1");
You may want to set more button properties, such as the color and border