Class: RubberStampAnnot

PDFNet. RubberStampAnnot


new RubberStampAnnot()

A RubberStamp annotation displays text or graphics intended to look as if they were stamped on the page with a rubber stamp.

Extends

  • MarkupAnnot

Members


<static> Icon

Properties:
Name Type Description
e_Approved number
e_Experimental number
e_NotApproved number
e_AsIs number
e_Expired number
e_NotForPublicRelease number
e_Confidential number
e_Final number
e_Sold number
e_Departmental number
e_ForComment number
e_TopSecret number
e_ForPublicRelease number
e_Draft number
e_Unknown number

Methods


<static> create(doc, pos)

Constructor
Parameters:
Name Type Description
doc PDFNet.PDFDoc | PDFNet.SDFDoc | PDFNet.FDFDoc
pos PDFNet.Rect
Returns:
A promise that resolves to an object of type: "PDFNet.RubberStampAnnot"
Type
Promise.<PDFNet.RubberStampAnnot>

<static> createFromAnnot(ann)

creates a RubberStamp annotation and initializes it using given annotation object.
Parameters:
Name Type Description
ann PDFNet.Annot Annot object used to initialize the RubberStamp annotation.
Returns:
A promise that resolves to an object of type: "PDFNet.RubberStampAnnot"
Type
Promise.<PDFNet.RubberStampAnnot>

<static> createFromObj( [d])

creates a RubberStamp annotation and initializes it using given Cos/SDF object.
Parameters:
Name Type Argument Description
d PDFNet.Obj <optional>
The Cos/SDF object to initialze the annotation with.
Returns:
A promise that resolves to an object of type: "PDFNet.RubberStampAnnot"
Type
Promise.<PDFNet.RubberStampAnnot>

getIcon()

Returns the type of the icon associated with the RubberStamp annotation.
Returns:
A promise that resolves to a value of enum "Icon" that represents the type of icon associated with the annotation. Default value: e_Draft.
Type
Promise.<number>
Example
Return value enum:
<pre>
PDFNet.RubberStampAnnot.Icon = {
    e_Approved : 0
    e_Experimental : 1
    e_NotApproved : 2
    e_AsIs : 3
    e_Expired : 4
    e_NotForPublicRelease : 5
    e_Confidential : 6
    e_Final : 7
    e_Sold : 8
    e_Departmental : 9
    e_ForComment : 10
    e_TopSecret : 11
    e_ForPublicRelease : 12
    e_Draft : 13
    e_Unknown : 14
}
</pre>

getIconName()

Returns the name of the icon associated with the RubberStamp annotation.
Returns:
A promise that resolves to a string that is the name of the icon associated with the RubberStamp annotation.
Type
Promise.<string>

setIcon( [type])

sets the type of the icon associated with the RubberStamp annotation.
Parameters:
Name Type Argument Description
type number <optional>
PDFNet.RubberStampAnnot.Icon = {
	e_Approved : 0
	e_Experimental : 1
	e_NotApproved : 2
	e_AsIs : 3
	e_Expired : 4
	e_NotForPublicRelease : 5
	e_Confidential : 6
	e_Final : 7
	e_Sold : 8
	e_Departmental : 9
	e_ForComment : 10
	e_TopSecret : 11
	e_ForPublicRelease : 12
	e_Draft : 13
	e_Unknown : 14
}
A value of enum "Icon" type that represents the type of icon associated with the annotation. Default value: e_Draft.
Returns:
Type
Promise.<void>

setIconDefault()

Returns:
Type
Promise.<void>

setIconName(iconstring)

sets the name of the icon associated with the RubberStamp annotation.
Parameters:
Name Type Description
iconstring string the name of the icon associated with the RubberStamp annotation.
Returns:
Type
Promise.<void>