Skip to main content

CDocBuilder

Base class used by ONLYOFFICE Document Builder for the document file (text document, spreadsheet, presentation, form document, PDF) to be generated.

Syntax

class CDocBuilder

Methods

NameDescription
CloseFileCloses the file to stop working with it.
CreateFileCreates a new file.
CreateInstanceCreates an instance of the CDocBuilder class. (COM only)
DisposeUnloads the ONLYOFFICE Document Builder from the application memory when it is no longer needed. (not used in .Net)
DestroyUnloads the ONLYOFFICE Document Builder from the application memory when it is no longer needed. (.Net only)
ExecuteExecutes the command and returns the CDocBuilderValue. (COM only)
ExecuteCommandExecutes the command which will be used to create the document file (text document, spreadsheet, presentation, form document, PDF).
GetContextReturns the current JS context.
GetVersionReturns the ONLYOFFICE Document Builder engine version. (not used in COM)
InitializeInitializes the ONLYOFFICE Document Builder as a library for the application to be able to work with it.
IsSaveWithDoctrendererModeSpecifies if the doctrenderer mode is used when building a document or getting content from the editor when saving a file.
OpenFileOpens the document file which will be edited and saved afterwards.
RunRuns the ONLYOFFICE Document Builder executable.
RunTextRuns all the commands for the document creation using a single command. (not used in C++)
RunTextARuns all the commands for the document creation using a single command in the UTF8 format. (C++ only)
RunTextWRuns all the commands for the document creation using a single command in the Unicode format. (C++ only)
SaveFileSaves the file after all the changes are made.
SetPropertySets an argument which can be transferred to the program outside the CDocBuilder.ExecuteCommand method.
SetPropertyWSets an argument in the Unicode format which can be transferred to the program outside the CDocBuilder.ExecuteCommand method. (C++ only)
SetTmpFolderSets the path to the folder where the program will temporarily save files needed for the program correct work.
WriteDataWrites data to the log file.
note

Java uses camelCase method names: closeFile, createFile, executeCommand, etc.