Skip navigation
DurgaCharan
Currently Being Moderated

show or hide watermarks in the pdf doucument

Aug 7, 2012 9:36 PM

Hi All,

 

How to show or hide watermark from the digitally signed pdf document using java script.

 
Replies
  • Currently Being Moderated
    Aug 8, 2012 1:16 AM   in reply to DurgaCharan

    Use something like this:

     

    function toggleWM(vis) {

      o = this.getOCGs();

      for(var i=0;i<o.length;i++) if (o[i].name == "Watermark") o[0].state = vis;

    }

     

    then you can call toggleWM(true); etc as required.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 8, 2012 9:10 AM   in reply to DurgaCharan

    You don't need Javascript for this. Change the appearance options of the watermark. Disable the entry 'Show when printing'.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points