Answered
this.addWatermarkFromText({
cText: "Hello" ,
cFont: "AngsanaUPC" ,
aColor: ["RGB", 1, 0, 0] ,
nTextAlign: app.constants.align.center,
nHorizAlign: app.constants.align.center,
nVertAlign: app.constants.align.top,
nHorizValue: -50,
nVertValue: -72 ,
nOpacity: 0.1 ,
});
}
from code above i add text "Hello" as the watermark . I have seen in javascript API reference that addWatermarkFromText(); will places the watermark in an optional content group (OCG).
my question is how can i get the text "Hello" back from watermark in document.
However, I don't think you can use that to retrieve the actual text in the watermark.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com