9 Replies Latest reply on Oct 27, 2011 6:21 AM by Harbs.

    How to Set the Colow for a Watermark

    mlavie Level 1

      Foe CS5/ActionScript:


      Hi all,


      I want to change the default color of a watermark. So I tried:



      m_workingDocument.watermarkPreferences.watermarkFontColor = myIndesignApp.colors.add({name:"WatermarkColor", model:ColorModel.PROCESS, colorValue:[0,100,100,0]});






      m_workingDocument.watermarkPreferences.watermarkFontColor = myIndesignDocument.colors.add({name:"WatermarkColor", model:ColorModel.PROCESS, colorValue:[0,100,100,0]});



      Both throw a null exception at run time.


      What am I doing wrong?


      Also, is there any way to create a color on the fly which does NOT appear in the swatches panel? (I don't want customers to be able to change the defintion of the color to white, so that the watermark becomes invisible...).