Skip to main content
January 4, 2017
Question

"Document Will Print" Action does NOT run in Adobe Acrobat Reader XI

  • January 4, 2017
  • 1 reply
  • 2646 views

Hi All,

I have inserted a JavaScript as following in a pdf file using Adobe Pro XI.

this.addWatermarkFromText({

cText: "UNCONTROLLED COPY.  User must verify this
is the current version. Document effective as of Access Date of " +
util.printd("mmm dd, yyyy HH:MM", new Date()),

nTextAlign: app.constants.align.center,

nHorizAlign: app.constants.align.center,

nVertAlign: app.constants.align.center,

nVertValue: 380,

aColor: ["RGB",1,0,0],

nFontSize: 10,

})

A red sentence with time stamp suppose to be shown on the print out. However, for users who have Adobe Acrobat Reader XI, these texts did NOT shown on their printouts. Are there any settings in Reader I need to change for them so the text could show? or users need to modify the print setting?

Thanks a lot!!

    This topic has been closed for replies.

    1 reply

    Bernd Alheit
    Community Expert
    January 4, 2017

    Reader can't add watermarks. Add the watermark with Acrobat.

    January 4, 2017

    Hi,

    So this document will NOT be printed with the "watermark" in Adobe Reader XI? user with adobe reader is not required to add/modify the JavaScript in my case because we only want users to be able to view and print documents with "watermark"...

    try67
    Community Expert
    January 4, 2017

    Instead of the addWatermarkFromText method you should use something like a print-only text field, and then populate it using a WillPrint script. That will work in Reader.