class: com.nbx.pdfviewer.Watermark.Image
| Control Sample: com.nbx.pdfviewer.PDFViewer | Module: com/nbx/pdfviewer/Watermark.Image | Application Component: NBX-UI5-PDFViewer |
| Documentation: Nubexx PDF Viewer | Visibility: public | Minimum Ui5-Version required: 1.71 |
Overview
Contains a single watermark image 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.Image(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. |
| height | float | null | Height of the image in percent based on page height. |
| opacity | float | 0 | Opacity of the image. |
| 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. |
| scale | float | 1 | Scale size of the image. |
| src | sap.ui.core.URI | A valid image resource. Note: The source must come from the same domain. | |
| svgContent | string | If src is not provided, an SVG string can be set. See below. | |
| width | float | 20 | Width of the image in percent based on page width. |
Example for svgContent
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
<rect width="100" height="100" fill="gray"/>
</svg>