Image Rubber Stamp Annotations configuration
An Image Rubber Stamp is an image annotation from a pre-defined list. You can define a list of pre-configured/custom Image Rubber Stamps through the enableRubberStamp
parameter in the web.xml
file.
If the enableRubberStamp
parameter is set to true
and one or more Rubber Stamps are defined, then clicking on the Text Edit annotation toolbar button will produce the rubber stamp text menu.
Note: If the enableRubberStamp parameter is set to false, then clicking the Text Edit annotation button allows you to select only Add New Text to add a text annotation.
The Image Rubber Stamp functionality is defined by the enableSingleClickImageRubberStamp
parameter in the web.xml
file as shown below in a comma-separated list of names which will be used to pull the individual stamp configurations out of the web.xml
:
<init-param>
<param-name>testStamp1,testStamp2</param-name>
<param-value>8.5</param-value>
</init-param>
Set the comma-separated list of names which will be used to pull the individual stamp configurations out of the web.xml
. You use these names in the param-name tags as shown in this example:
<init-param>
<param-name>testStamp1</param-name>
<param-value>
This is the First Test,300,175,
http://www.sample.com/sites/sample.com/files/images/Sample.png
</param-value>
</init-param>
<init-param>
<param-name>testStamp2<</param-name>
<param-value>
This is the Second Test,600,300,http://www.sample.com/sample.png
</param-value>
</init-param>
The param-value tags are comma separated as follows:
<param-value>displayName,stampWidth,stampHeight,stampURL</param-value>`
displayName
-The text that will show up in the pop-up menu in the UI to describe the stamp.stampWidth
/stampHeight
- The dimensions used whenenableSingleClickImageRubberStamp
is enabled inconfig.js
.stampURL
- The URL to the stamp in question. This will be downloaded on servlet startup, converted to PNG, and stored in memory.
Set the enableSingleClickImageRubberStamp
parameter to true
in the config.js
file to draw the bounding box when adding a rubber stamp to the image with a single click. It will be sized according to the dimensions specified in web.xml
. If false
, it will behave like any other annotation.
<init-param>
<param-name>enableSingleClickImageRubberStamp</param-name>
<param-value>true</param-value>
</init-param>
Have questions, corrections, or concerns about this topic? Please let us know!