Skip to main content

Call

Calls the specified Document Builder method. See the Document API, Spreadsheet API, Presentation API, or Form API sections for more information which methods are available for various document types.

note
  • This method is not available for JS. Call methods directly.
  • For Python, you can also call methods directly without using Call. For example, api.GetDocument() is equivalent to api.Call("GetDocument").

Syntax​

def Call(self, name: str, *args) -> CDocBuilderValue

Parameters​

NameTypeDescription
namestrThe name of the Document Builder method.
*argsCDocBuilderValueThe parameters that the Document Builder method takes as arguments.

Example​

builder = docbuilder.CDocBuilder()
context = builder.GetContext()
globalObj = context.GetGlobal()
api = globalObj["Api"]
document = api.GetDocument()