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

Watermark script

cyfu
Registered: Apr 26 2011
Posts: 32

My script right now is printing the stamp at the center of the document. How can I get the stamp to print diagonally?
 
//to create watermark/stamp
for(var i=0;i < this.numPages;i++)
{
this.addWatermarkFromText({cText: "FORM\n\nFINALIZED", textAlign:app.constants.align.center,
cFont: "Helvetica-Bold",
nFontSize:48,
aColor: color.red,
nOpacity: 0.5,
bOnScreen:true,
bOnPrint:true});
};
 
Also, bOnScreen is set to true, but its not really visible. How can I make it so that its viewable on the screen over all the other fields (watermark-like)?

My Product Information:
Acrobat Pro 7.0, Windows
George_Johnson
Online
Expert
Registered: Jul 6 2008
Posts: 1876
All the parameters are documented here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.443.phpTo print diagonally, specify the nRotation parameter. Also, try setting bOnTop to true.
cyfu
Registered: Apr 26 2011
Posts: 32
Thanks, adding the nRotation parameter worked. But adding the bOnTop parameter (true) still isn't displaying the watermark over everything else. Am I missing something, or do I need to set my other fields to something else?
try67
Expert
Registered: Oct 30 2008
Posts: 2398
From my experience, watermarks do not appear above form fields, even if you set them to be on top.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com