This content has been marked as final. Show 3 replies
I did try the same command in console and successfully removed the watermarks - but had to confirm the pop up dialog.
so removing the pop up might also help to make it work unattended (sendkey is not an option)
And if one uses the "addWaterMarkFromText" method with no text, the current water mark is replaced with an empty watermark and no popup, or one can can use the OCG object to hide the watermark. See the example with the funciton to toggle the watermark OCG.
thanks for the quick response,
Actually i have both "addWaterMarkFromText" with status date and "addWatermarkFromFile" with the status stamp. I tried the OCG approach:
get the OCG's
Dim OCGs As Object
OCGs = jsObj.getOCGs(0)
For i As Integer = 0 To OCGs.length - 1
If OCGs(i).name = "WaterMark" Then
OCGs(i).state = False
It finds the watermark OCG on the first page but doesn't turn it off.
keep in mind that i do want a watermark OCG - but a new one with the new status
I saw this problem in quite a few forums - but never found any acceptable solution