Skip to main content
Meilleure réponse par try67

What about: Text size? Font? Color? Distance from bottom of the page?


If you want to use the settings from your screenshot above, you can do it using this code:

 

for (var p=0; p<this.numPages; p++) {
	this.addWatermarkFromText({
		cText: util.printf("%04d", (p+1)), cFont: "Arial", nFontSize: 8, nStart: p, nEnd: p, 
		nHorizAlign: app.constants.align.center, nVertAlign: app.constants.align.bottom, nVertValue: 32
	});
}

 

To remove these page numbers you can use the Remove Watermark command.

2 commentaires

try67
Community Expert
Community Expert
September 21, 2021

It's not possible using the built-in Add Header & Footer tool of Acrobat, but it can be done using a script.

avv98Auteur
Known Participant
September 21, 2021

sorry im new to script do you have idead how to do it?

try67
Community Expert
Community Expert
September 21, 2021

Yes. Where do you want the text to appear, and what should it look like?

Document Geek
Community Expert
Community Expert
September 21, 2021

Under Header and Footer, add a page nuber and put three zeros in front of the 1.

avv98Auteur
Known Participant
September 21, 2021

not working (page numbers are all the same if I do that) , thanks for the answer tho