Skip to main content

Initialize

Initializes the ONLYOFFICE Document Builder as a library for the application to be able to work with it. This method just sets the directory to the main Document Builder resources (icu files, etc). If this method is not called, the Document Builder will find resources from the current process directory.

note

For JS, this method is not used.

Syntax

@classmethod
def Initialize(cls, directory: str = None)

Parameters

NameTypeDefaultDescription
directorystrNoneThe path to the main Document Builder resources.

Example

import docbuilder

docbuilder.CDocBuilder.Initialize("../documentBuilder")
builder = docbuilder.CDocBuilder()
docbuilder.CDocBuilder.Dispose()