Skip to main content

class: com.nbx.pdfviewer.Watermark.Text

Control Sample: com.nbx.pdfviewer.PDFViewerModule: com/nbx/pdfviewer/Watermark.TextApplication Component: NBX-UI5-PDFViewer
Documentation: Nubexx PDF ViewerVisibility: publicMinimum 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?)

ParamTypeDefault valueDescription
sId?stringId for the new control, generated automatically if no id is given.
mSettings?objectInitial settings for the new control.

Properties

NameTypeDefault ValueDescription
alignHorizontalsap.ui.core.HorizontalAlignsap.ui.core.HorizontalAlign.CenterHorizontal reference position of the watermark object.
alignVerticalsap.ui.core.VerticalAlignsap.ui.core.VerticalAlign.MiddleVertical reference position of the the watermark object.
colorsap.ui.core.CSSColorrgba(0, 0, 0, 0.5)Text color.
fontFacestringArialFont face
fontSizefloat10Font size in percent based on page height.
fontWeightstringboldFont weight
lineHeightfloat1Line height. Related to multi line text.
outlineColorsap.ui.core.CSSColorrgba(255, 255, 255, 0.5)Outline drawn around the text.
outlineWidthfloat1Outline width in points.
positionHorizontalfloat50Horizontal position of the object reference position in percent of the page width.
positionVerticalfloat50Vertical position of the object reference position in percent of the page height.
rotatefloat0Rotation angle of the watermark object in relation to the reference position.
textstringText to draw as watermark. \n will be converted to line breaks.