7
Review, Markup, and Approval
Using Commenting Tools
Adding Watermarks
A watermark is an area containing text or graphics appearing underneath or over existing
document content when a document is printed. This is often referred to as layered content,
and may appear differently in print than it does on the screen. For example, the word
"Confidential" could appear as a watermark within a document.
You can add watermarks through Acrobat JavaScript by invoking the
doc
object’s
addWatermarkFromFile
or
addWatermarkFromText
method, and you may also
create stamp annotations. The
addWatermarkFromFile
method places, into a
specified location and at a particular scale factor and rotation, a single page from any
document format that Acrobat can convert to PDF (such as JPEG, PNG, TIFF, Word, or
AutoCAD).
The Stamping User Interface
You may create an annotation using the
Stamp
type, and invoke the
annot
object’s
AP
property to determine the appearance of the stamp in the document. The following
appearance options are available for stamp annotations:
●
●
●
●
●
●
●
●
●
●
●
●
●
●
Approved
AsIs
Confidential
Departmental
Draft
Experimental
Expired
Final
ForComment
ForPublicRelease
NotApproved
NotForPublicRelease
Sold
TopSecret
134
Acrobat JavaScript Scripting Guide