Is it possible to have Adobe insert the filename of a PDF as a header or footer without having to manually type it in each PDF?
Is it possible to have Adobe insert the filename of a PDF as a header or footer without having to manually type it in each PDF?
For example this script will put the filename (only) in the bottom center of every page:
this.addWatermarkFromText({
cText: this.documentFileName,
nTextAlign: app.constants.align.center,
nHorizAlign: app.constants.align.center,
nVertAlign: app.constants.align.bottom,
nFontSize: 12,
nVertValue: 12});
For details on all the parameters, see the Acrobat JavaScript documentation.