Principle
Stamp templates are used to define the stamps a user can create. They can be of two types:
- textual: based on a character string
- image: based on an image (encoded using the base64 format)
A stamp template is stored as a catalogue in a document of class UserPreference
with the following tags:
UserPreferenceType
withSTAMP
valueUser
with the value of the identity to which the stamp template is shared
By user
Users create their own stamp templates via their preferences (accessible by clicking on their avatar). New stamp templates are stored and can be accessed after refreshing the viewer in the annotations menu.
The User
tag is filled in with the identifier of the user creating the template. Only this user can access the template.
By team
Administrators set up stamp templates that are accessible to a team of users. The Configuration > Stamps section in the administration console lets them add the XML configuration needed to create stamp templates.
The User
tag is filled in with the identifier of the team of users who can use the template created.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<annotationTemplateCatalog>
<annotationTemplates>
<annotationStyle>
<arrowWidth>0.0</arrowWidth>
<backgroundColor>none</backgroundColor>
<bold>false</bold>
<borderBackmode>0</borderBackmode>
<borderColor>green</borderColor>
<borderStyle>1</borderStyle>
<borderWidth>1</borderWidth>
<fontColor>green</fontColor>
<fontName>arial</fontName>
<fontSize>20</fontSize>
<hasBorder>false</hasBorder>
<heightHead>0.0</heightHead>
<italic>false</italic>
<lineBackMode>2</lineBackMode>
<lineStyle>0</lineStyle>
<opacity>1.0</opacity>
<rotation>30</rotation>
<strikethrough>false</strikethrough>
<textBackMode>1</textBackMode>
<underline>false</underline>
</annotationStyle>
<annotationType>Stamp</annotationType>
<contentTemplate>Approved on: ${date.now#dd-MM-yyyy}</contentTemplate>
<name>Approved</name>
</annotationTemplates>
</annotationTemplateCatalog>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<annotationTemplateCatalog>
<annotationTemplates>
<name>Image</name>
<annotationType>ImageStamp</annotationType>
<imageLocation>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABUCAYAAADH/HimAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goBDi0zg4i+yAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0l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aw1Qkt7GVxwAZ4G8UdiIJ2iOg6s0pjAl1LPEWSlsWPQgpU9+EbJsNjBFQ9bBlE1mkU+NJtM18jyBuMjDZ+y4wSUDVO+Oupcxk2m7K2Y64u8d+wecIqBXN4TAU6Q5/hKdVQHpducYB0zymCgioejQgLUHH0HbPSDOyDzlC9o6TwEABAVWnOWy7zccp3KvhXqOQTU4R0mnDOuzBvAqoWsaw/WAfJu615BoIgOzfcA75pYSq3IAagStV/wCyHXbHBMbpj/S7tfs5csHvCKh2Z9y9jwP+Ttw0zppMffW7CGn9SfA1AmqBQbLGdFqGtNDplaA9nlbmuMZojqA1AmoC2yHh2lM9xnEFib9X5jjXc8iDBgmoaqc8Y7TDRZ5Z5Zxy91yNyUFjBNSi3zEHKTBs8BzuRuRJQquQ/qsEBgmoNSb5MdLdvNn7fADS2XwVslPQfhfMqoCaYI7DkA7oAyjMko9Fuq2vI/STDahRTEAelLO/pxU+h7T4t7VVAQE1hX7IcxyO9DTKbOIHovwymFMBtWpanYO0AXUYjTy1yLUFdQ+5yYUlC6g15tidwr3i5wCvEzeS/jKFD6AJUauAmsJC2j60MlIm2c0wU+grG1CTmO0xxlKkdGRYWJqAajadyj0uizSR7os8ydT5Ha1hKQNqnZHSfIpgSgUEBATUIv4PjLUPTjqL7sIAAAAASUVORK5CYII=</imageLocation>
<annotationStyle>
<rotation>340</rotation>
</annotationStyle>
<defaultPosition>
<w>200</w>
<h>100</h>
</defaultPosition>
</annotationTemplates>
</annotationTemplateCatalog>
gui.client.arender.enable.default.stamps=true
property to the gui.properties
file.