java.lang.Object | |||
↳ | com.pdftron.pdf.Annot | ||
↳ | com.pdftron.pdf.annots.Markup | ||
↳ | com.pdftron.pdf.annots.RubberStamp |
A rubber stamp annotation (PDF 1.3) displays text or graphics intended to look as if they were stamped on the page with a rubber stamp. When opened, it shall display a pop-up window containing the text of the associated note. Table 181 shows the annotation dictionary entries specific to this type of annotation.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | e_Approved | This integer list represents the Icon type of the RubberStamp annotation e_Approved - a stamp with the text "Approved" e_Experimental - a stamp with the text "Experimental" e_NotApproved - a stamp with the text "NotApproved" e_AsIs, - a stamp with the text "AsIs" e_Expired - a stamp with the text "Expired" e_NotForPublicRelease - a stamp with the text "NotForPublicRelease" e_Confidential - a stamp with the text "Confidential" e_Final - a stamp with the text "Final" e_Sold - a stamp with the text "Sold" e_Departmental - a stamp with the text "Departmental" e_ForComment - a stamp with the text "ForComment" e_TopSecret - a stamp with the text "TopScret" e_ForPublicRelease - a stamp with the text "ForPublicRelease" e_Draft - a stamp with the text "Draft" e_Unknown - User defined or invalid. | |||||||||
int | e_AsIs | The Constant e_AsIs. | |||||||||
int | e_Confidential | The Constant e_Confidential. | |||||||||
int | e_Departmental | The Constant e_Departmental. | |||||||||
int | e_Draft | The Constant e_Draft. | |||||||||
int | e_Experimental | The Constant e_Experimental. | |||||||||
int | e_Expired | The Constant e_Expired. | |||||||||
int | e_Final | The Constant e_Final. | |||||||||
int | e_ForComment | The Constant e_ForComment. | |||||||||
int | e_ForPublicRelease | The Constant e_ForPublicRelease. | |||||||||
int | e_NotApproved | The Constant e_NotApproved. | |||||||||
int | e_NotForPublicRelease | The Constant e_NotForPublicRelease. | |||||||||
int | e_Sold | The Constant e_Sold. | |||||||||
int | e_TopSecret | The Constant e_TopSecret. | |||||||||
int | e_Unknown | The Constant e_Unknown. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.annots.Markup
| |||||||||||
From class
com.pdftron.pdf.Annot
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RubberStamp(Obj d)
Creates a RubberStamp annotation and initialize it using given Cos/SDF object.
| |||||||||||
RubberStamp()
Creates an empty RubberStamp annotation.
| |||||||||||
RubberStamp(Annot annot)
Creates a RubberStamp annotation and initialize it using given annotation object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
SetIcon(int type)
Set the Icon type as an entry of the enum "Icon".
| ||||||||||
void |
SetOpacity(double opacity)
Updates the appearance of the stamp with the given opacity value
Opacity value does not accumulate in case of subsequent calls - i.e.
| ||||||||||
static RubberStamp |
create(Doc doc, Rect pos)
Creates a new RubberStamp annotation, in the specified document.
| ||||||||||
static RubberStamp |
createCustom(Doc doc, Rect pos, Obj in_options)
Creates a new RubberStamp annotation with custom options, in the specified document.
| ||||||||||
int |
getIcon()
Get the Icon type as an entry of the enum "Icon".
| ||||||||||
String |
getIconName()
Get the Icon type as a string.
| ||||||||||
void |
setIcon(String icon)
Set the Icon type as a string.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.annots.Markup
| |||||||||||
From class
com.pdftron.pdf.Annot
| |||||||||||
From class
java.lang.Object
|
This integer list represents the Icon type of the RubberStamp annotation e_Approved - a stamp with the text "Approved" e_Experimental - a stamp with the text "Experimental" e_NotApproved - a stamp with the text "NotApproved" e_AsIs, - a stamp with the text "AsIs" e_Expired - a stamp with the text "Expired" e_NotForPublicRelease - a stamp with the text "NotForPublicRelease" e_Confidential - a stamp with the text "Confidential" e_Final - a stamp with the text "Final" e_Sold - a stamp with the text "Sold" e_Departmental - a stamp with the text "Departmental" e_ForComment - a stamp with the text "ForComment" e_TopSecret - a stamp with the text "TopScret" e_ForPublicRelease - a stamp with the text "ForPublicRelease" e_Draft - a stamp with the text "Draft" e_Unknown - User defined or invalid.
The Constant e_AsIs.
The Constant e_Confidential.
The Constant e_Departmental.
The Constant e_Draft.
The Constant e_Experimental.
The Constant e_Expired.
The Constant e_Final.
The Constant e_ForComment.
The Constant e_ForPublicRelease.
The Constant e_NotApproved.
The Constant e_NotForPublicRelease.
The Constant e_Sold.
The Constant e_TopSecret.
The Constant e_Unknown.
Creates a RubberStamp annotation and initialize it using given Cos/SDF object.
Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.
d | the input Cos/SDF object |
---|
Creates an empty RubberStamp annotation.
Creates a RubberStamp annotation and initialize it using given annotation object.
Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.
annot | the input annotation object |
---|
PDFNetException |
---|
Set the Icon type as an entry of the enum "Icon".
Note: the icon type represnets an icon that shall be used in displaying the annotation. There are predefined icon appearances for at the following standard names: e_Approved, e_Experimental, e_NotApproved, e_AsIs, e_Expired , e_NotForPublicRelease, e_Confidential, e_Final, e_Sold, e_Departmental, e_ForComment, e_TopSecret, e_Draft, e_ForPublicRelease Additional names may be supported as well. Default value: Draft. The annotation dictionary's Appearance(AP) entry, if present, shall take precedence over this Name entry.
type | An entry of "Icon" that represents the type of icon that is corresponding with this RubberStamp annotation. |
---|
PDFNetException |
---|
Updates the appearance of the stamp with the given opacity value Opacity value does not accumulate in case of subsequent calls - i.e. last call sets the final opacity
Creates a new RubberStamp annotation, in the specified document.
doc | A document to which the annotation is added. |
---|---|
pos | A rectangle specifying the annotation's bounds, specified in user space coordinates. |
PDFNetException |
---|
Creates a new RubberStamp annotation with custom options, in the specified document.
doc | A document to which the annotation is added. |
---|---|
pos | A rectangle specifying the annotation's bounds, specified in user space coordinates. |
in_options | The input options for creating custom appearance, including TEXT as string (mandatory): The text to be displayed in rubber stamp TEXT_BELOW as string (optional): The text to be displayed below the first text FILL_COLOR as an array of three or four numbers between 0.0 to 1.0 (optional): The fill color TEXT_COLOR as an array of three or four numbers between 0.0 to 1.0 (optional): The text color BORDER_COLOR as an array of three or four numbers between 0.0 to 1.0 (optional): The border color FILL_COLOR_START as an array of three or four numbers between 0.0 to 1.0 (optional): The start fill color if background is gradient FILL_COLOR_END as an array of three or four numbers between 0.0 to 1.0 (optional): The end fill color if background is gradient FILL_OPACITY as a number (optional): the fill opacity TEXT_OPACITY as a number (optional): the text opacity ROTATION as a number (optional): rotation. valid numbers are {0, 90, 180, 270} POINTING_LEFT as a boolean (optional): if the stamp is pointing left POINTING_RIGHT as a boolean (optional): if the stamp is pointing right |
PDFNetException |
---|
Get the Icon type as an entry of the enum "Icon".
Note: the icon type represnets an icon that shall be used in displaying the annotation. There are predefined icon appearances for at the following standard names: e_Approved, e_Experimental, e_NotApproved, e_AsIs, e_Expired , e_NotForPublicRelease, e_Confidential, e_Final, e_Sold, e_Departmental, e_ForComment, e_TopSecret, e_Draft, e_ForPublicRelease Additional names may be supported as well. Default value: Draft. The annotation dictionary's Appearance(AP) entry, if present, shall take precedence over this Name entry.
PDFNetException |
---|
Get the Icon type as a string.
Note: the icon type represnets an icon that shall be used in displaying the annotation. There are predefined icon appearances for at the following standard names: Approved, Experimental, NotApproved, AsIs, Expired , NotForPublicRelease, Confidential, Final, Sold, Departmental, ForComment, TopSecret, Draft, ForPublicRelease. Additional names may be supported as well. Default value: Draft. The annotation dictionary's Appearance(AP) entry, if present, shall take precedence over this Name entry.
PDFNetException |
---|
Set the Icon type as a string.
Note: the icon type represnets an icon that shall be used in displaying the annotation. There are predefined icon appearances for at the following standard names: Approved, Experimental, NotApproved, AsIs, Expired , NotForPublicRelease, Confidential, Final, Sold, Departmental, ForComment, TopSecret, Draft, ForPublicRelease Additional names may be supported as well. Default value: Draft. The annotation dictionary's Appearance(AP) entry, if present, shall take precedence over this Name entry.
icon | A string representing icon type of the RubberStamp annotation |
---|
PDFNetException |
---|