Hi,
I've been asked to put a watermark on a form I designed but it needs to be conditional as there should be no watermark on the original printing of the form. My idea was to make it conditional on the date as they should be able to supply me with a static date that will be the first printing. I was able to come up with a javascript to create the watermark but am having trouble making it conditional. I am not trained in java but I can usually find the script by googling and modify it to suit my needs which is what I have done with the script below:
this.addWatermarkFromText({
cText: "Duplicate" ,
bOnTop: true,
bOnScreen: true,
nTextAlign: app.constants.align.left,
nHorizAlign: app.constants.align.center,
nVertAlign: app.constants.align.center,
nHorizValue: 0,
nScale: 3,
nOpacity: 0.1,
nRotation: 45
});
Any help is very much appreciated!
Thx
Brenda
Do you want to first add the watermark and afterwards make it hidden or visible based on a certain condition?
Or do you want to run the code above based on the condition?
Basically, conditions in JavaScript are created with an if statement, like so:
If you want more specific help, you will need to explain your situation a bit better.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com