Copy link to clipboard
Copied
I would like to insert a watermark on my pdf document every fixed number of pages (ex. every 5th page). However, there is currently only the option to select a range of pages or every odd or even page.
Having this feature would be very useful to me as my resources are 200-300 pages, the watermarks are distracting, and for security purposes not necessary to have on every page. I'm hoping this feature can be developed soon.
Thanks.
Copy link to clipboard
Copied
FYI for others that encounter this, try67 via email explained to insert the code "you just need to press Ctrl+J, paste the code into the window, select it all and then press Ctrl+Enter." And this worked and the code worked.
Copy link to clipboard
Copied
This can be achieved using a custom-made script.
Do you want to use an image, or text? Where should it appear, and what should it look like?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Try this code:
var watermarkText = "Purchased by A Smith January 7, 2022";
for (var p=0; p<this.numPages; p++) {
if (p==0 || p%5==4)
this.addWatermarkFromText({nStart: p, cText: watermarkText, cFont: "Arial", nFontSize: 8, nHorizAlign: app.constants.align.left, nVertAlign: app.constants.align.top, nHorizValue: 14, nVertValue: -24});
}
Copy link to clipboard
Copied
Thanks! how/where do I add the code?
Copy link to clipboard
Copied
You can run it as a part of an Action or from the JS Console.
Copy link to clipboard
Copied
I'm not familiar with this. Would it be possible for ut ot meet briefly via zoom so you can show me how.
Copy link to clipboard
Copied
I usually charge for private consultation sessions. If you're interested you can contact me via [try6767 at gmail.com].
You can learn here how to use the JS Console:
https://acrobatusers.com/tutorials/javascript_console
Copy link to clipboard
Copied
FYI for others that encounter this, try67 via email explained to insert the code "you just need to press Ctrl+J, paste the code into the window, select it all and then press Ctrl+Enter." And this worked and the code worked.
Copy link to clipboard
Copied
Watch the video here on using the Console Window:
https://www.pdfscripting.com/public/Free_Videos.cfm#JSIntro
Find more inspiration, events, and resources on the new Adobe Community
Explore Now