watermark_on_draw

type watermark_on_draw = object

Description

An object containing the watermark properties.

Properties

transparentfloat

The watermark transparency degree.

typestring

The {@link /docbuilder/global#ShapeType shape type} which specifies the preset shape geometry for the current watermark.

widthnumber

The watermark width measured in millimeters.

heightnumber

The watermark height measured in millimeters.

rotatenumber

The watermark rotation angle measured in degrees.

marginsnumber[]

The text margins measured in millimeters in the watermark shape.

fillnumber[] | string

The watermark fill color in the RGB format, or the URL to image (base64 support: data:image/png;...). The empty array [] means that the watermark has no fill.

stroke-widthnumber

The watermark stroke width measured in millimeters.

strokenumber[]

The watermark stroke color in the RGB format. The empty array [] means that the watermark stroke has no fill.

alignnumber

The vertical text align in the watermark shape: 0 - bottom, 1 - center, 4 - top.

paragraphsobject[]

The array with paragraphs from the current watermark with their properties.

paragraphs.alignnumber

The horizontal text align in the current paragraph: 0 - right, 1 - left, 2 - center, 3 - justify.

paragraphs.fillnumber[]

The paragraph highlight in the RGB format. The empty array [] means that the paragraph is not highlighted.

paragraphs.linespacingnumber

The text linespacing in the current paragraph.

paragraphs.runsobject[]

The array with runs from the current paragraph with their properties.

paragraphs.runs.textstring

The run text.

paragraphs.runs.fillnumber[]

The text highlight in the RGB format. The empty array [] means that the text is not highlighted.

paragraphs.runs.font-familystring

The text font family.

paragraphs.runs.font-sizestring

The text font size measured in points (pt).

paragraphs.runs.boldboolean

Defines if the current text is displayed bold or not.

paragraphs.runs.italicboolean

Defines if the current text is displayed italic or not.

paragraphs.runs.strikeoutboolean

Defines if the current text is displayed struck through or not.

paragraphs.runs.underlineboolean

Defines if the current text is displayed underlined or not.

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).