Skip to main content
monkeyclumps
Participant
March 26, 2020
Question

Watermarking same PDF for multiple unique recpients

  • March 26, 2020
  • 1 reply
  • 577 views

i was told to post here for help.  something about Java script that i know nothing about.  i have a 300 page pdf file that needs to be watermarked individually for over 100 recipients.  how do i do that without having to go into the PDF each time and change the name?  thanks. 

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
March 26, 2020

Is this watermark just the persons name? Where does it need to appear on the page? Is it on all pages?

 

You can write a simple script to do this from the Console window.

You'll find a tutorial here on the Console, infact you should watch several of these videos to get a grounding in Acrobat scripting:

https://www.pdfscripting.com/public/Free_Videos.cfm#JSIntro

 

Here's the reference entry for the watermark function:

https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FJS_API_AcroJS%2FDoc_methods.htm%23TOC_addWatermarkFromTextbc-10&rhtocid=_6_1_8_23_1_9

 

try it by running it in the Console window:

 

this.addWatermarkFromText({cText:"My Name"});

 

Writing the full script is a bit of work.  Contact me through www.windjack.com if you are interested in hiring a developer. 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
monkeyclumps
Participant
March 26, 2020

yes.  it's the person's name.  over 100 of them.  thyes...the watermark needs to be on each page of the file.  thanks

Thom Parker
Community Expert
Community Expert
March 26, 2020

Did you try the watermarking code in the console?

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often