These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Easy automatic way for user to insert custom footer on each page

uklogistics
Registered: Sep 18 2009
Posts: 14
Answered

Hi

I want to be able to click a button, and for Acrobat to insert a different footer onto each page on a 5 page acrobat document.

For example

Page 1 Footer
-----------------------
Customer Copy Page 1 of 5

Page 2 Footer
-----------------------
Office Copy Page 2 of 5

Page 3 Footer
-----------------------
Delivery Copy Page 3 of 5

Page 4 Footer
-----------------------
OS client Copy Page 4 of 5

Page 5 Footer
-----------------------
File Copy Copy Page 5 of 5

I can do this using the Batch Sequence, however it is cumborsome for the user. Reading other posts, it appears that it not possible to create a "one touch" button to execute user-defined batch sequences.

Also, I cannot see a way to save a Batch sequence to file, so I'm guessing I would have to manually setup this batch sequence on each PC.

Can a js script be used to insert this type footer ..if so does anyone have any examples?

thanks

try67
Expert
Registered: Oct 30 2008
Posts: 2399
Batch sequences are saved as *.sequ files which can be found at:
C:\Documents and Settings\\Application Data\Adobe\Acrobat\x.0\Sequences\But if you only want to do this to one file, then there's no need for a batch sequence. A JS script can easily do this with the addWatermarkFromText function of the Document object.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

uklogistics
Registered: Sep 18 2009
Posts: 14
Thanks, I used the below, seems to work ok

this.addWatermarkFromText({
cText: "FOOTER TEXT HERE ",
nStart: 2,
nEnd: 2,
nFontSize: 8,
nTextAlign: app.constants.align.center,
nHorizAlign: app.constants.align.center,
nVertAlign: app.constants.align.bottom,
nHorizValue: 20, nVertValue: 10
});