These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Removing Watermarks

srprice
Registered: Sep 19 2007
Posts: 138
Answered

I have created a javascript to add a watermark to a PDF form when clicking a button.

Here is the code:

this.addWatermarkFromText({
cText: "NOT APPLICABLE",
cFont: font.HelvB,
aColor: color.ltGray,
nStart: 0,
nEnd: 0,
nOpacity: .5,
nScale: 1.75,
bOnTop: false,
nVertValue: 140,
nHorizValue: -140
});

However my problem is that when I RESET the form everything resets fine but I would like for it to remove the watermark as well.

Can someone tell me what javascript code I can use to remove this watermark??

Thanks for all your help.

Sarah

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Do you want to remove the watermark or just hide it? I don't know a way to programmatically remove a watermark, apart form deleting the page. For information about how to control the visibility of a watermark, see Thom's article here: http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/create_use_layers/


George