class: com.nbx.pdfviewer.Watermark.Text
| Control Sample: com.nbx.pdfviewer.PDFViewer | Module: com/nbx/pdfviewer/Watermark.Text | Application Component: NBX-UI5-PDFViewer |
| Documentation: Nubexx PDF Viewer | Visibility: public | Minimum Ui5-Version required: 1.71 |
Overview
Contains a single watermark text object that is rendered over the PDF content.
info
Watermarks are not supported in the trial version of the PDF Viewer.
Constructor
Constructor for a new Option element.
new com.nbx.pdfviewer.Watermark.Text(sId?, mSettings?)
| Param | Type | Default value | Description |
|---|---|---|---|
| sId? | string | Id for the new control, generated automatically if no id is given. | |
| mSettings? | object | Initial settings for the new control. |
Properties
| Name | Type | Default Value | Description |
|---|---|---|---|
| alignHorizontal | sap.ui.core.HorizontalAlign | sap.ui.core.HorizontalAlign.Center | Horizontal reference position of the watermark object. |
| alignVertical | sap.ui.core.VerticalAlign | sap.ui.core.VerticalAlign.Middle | Vertical reference position of the the watermark object. |
| color | sap.ui.core.CSSColor | rgba(0, 0, 0, 0.5) | Text color. |
| fontFace | string | Arial | Font face |
| fontSize | float | 10 | Font size in percent based on page height. |
| fontWeight | string | bold | Font weight |
| lineHeight | float | 1 | Line height. Related to multi line text. |
| outlineColor | sap.ui.core.CSSColor | rgba(255, 255, 255, 0.5) | Outline drawn around the text. |
| outlineWidth | float | 1 | Outline width in points. |
| positionHorizontal | float | 50 | Horizontal position of the object reference position in percent of the page width. |
| positionVertical | float | 50 | Vertical position of the object reference position in percent of the page height. |
| rotate | float | 0 | Rotation angle of the watermark object in relation to the reference position. |
| text | string | Text to draw as watermark. \n will be converted to line breaks. |