SetProperties

function SetProperties(
  obj: object,
  obj.copyoutenabled: boolean,
  obj.hideContentControlTrack: boolean,
  obj.watermark_on_draw: string,
  obj.disableAutostartMacros: boolean,
  obj.fillForms: string,
): void

Description

Sets the properties to the document.

Parameters

objobject

The document properties.

obj.copyoutenabledboolean

Disables copying from the editor if it is set to false.

obj.hideContentControlTrackboolean

Disables tracking the content control if it is set to true.

obj.watermark_on_drawstring

A string value for {@link global#watermark_on_draw watermark properties} in JSON format.

obj.disableAutostartMacrosboolean

Sets a flag that specifies that macros are started automatically when the editor opens.

obj.fillFormsstring

Sets rules in JSON format for filling document {@link global#fillForms forms} by tags.

Returns

void

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).