This function allows you to add a polygon ruler annotation (annotation type 16) onto a document into the DocuVieware™ viewer.
Parameters
- docuViewareID
- The identifier for the DocuVieware™ instance you want to add the annotation on.
- annotationAppearance
- An optional JavaScript object that contains the appearance you want the annotation to have. Annotation properties are listed below.
- showDialog
- An optional boolean that let you decide if the annotation dialog should be shown or not (this requires the annotationAppearance to be sent).
- enabledProperties
- An optional string array that let you decide what properties are going to be shown in the annotation creation dialog.
Return Value
1 if error, 0 if success.
Ruler Annotation Properties
| Name | Type | Default |
|---|---|---|
| borderWidth | float | 0.04 |
| dashCap | int | 0 |
| dashStyle | int | 0 |
| fill | bool | false |
| fillColor | string | "#000000" |
| fontName | string | "Arial" |
| fontSize | int | 12 |
| fontStyle | int | 0 |
| foreColor | string | "#000000" |
| measurementUnit | int | 1 |
| opacity | float | 1 |
| rotation | int | 0 |
| stroke | bool | true |
| strokeColor | string | "#000000" |
| scale | float | 0 |