3 Replies Latest reply on Nov 20, 2014 6:44 AM by try67

    Watermark document on printing using javascript.

    djbourno

      I have created a script to watermark a document on printing.  I want to rotate the text but have tried a few different options I have found online but cannot get the rotation to work.  Script without rotation below.

       

      var cMyText = "Controlled until removed from SHEQMS";

      this.addWatermarkFromText({

                 cText: cMyText,

                 nHorizAlign:app.constants.align.left,

                 nHorizValue: 36,   // ½ inch from left

                 nVertAlign:app.constants.align.bottom,

                 nVertValue: 36,   // ½ inch above bottom

                 cFont: "Arial",

                 nFontSize:8,

                 aColor: color.gray,

                  nStart: this.pageNum,

                   nOpacity:0.5,

                   bOnScreen: false

      });

       

      I have tried nRotate in there but it didn't work.  Can some helpful soul point me in the right direction.