Introduction

Document Builder is a tool that allows you to generate text documents, spreadsheet, presentation and PDF files and automate document building using the templates. It can be easily integrated into your document management system using its JavaScript API.

You can easily compile Document Builder from source codes and deploy the solution on your local server using the specially designed build_tools. The build_tools allow to automatically get and install all the components necessary for the compilation process, all the dependencies required for the Document Builder correct work, as well as to get the latest version of Document Builder source code and build all its components.

Important! We can only guarantee the correct work of the products built from the master branch.

System requirements

Hardware

CPU

dual core 2 GHz or better

RAM

2 GB or more

HDD

at least 40 GB of free space

Additional requirements

at least 4 GB of swap

Software

OS

64-bit Ubuntu 14.04

The solution has been tested on Ubuntu 14.04. Other distributions might require some specific actions which are not described here.

Installing dependencies

You might need to install Python and Git if they are not yet installed on your computer. This can be done using the following command:

sudo apt-get install -y python git

Building Document Builder source code

Clone the build_tools repository:

git clone https://github.com/ONLYOFFICE/build_tools.git

Go to the build_tools/tools/linux directory:

cd build_tools/tools/linux

Run the automate.py script specifying the builder parameter to compile the Document Builder:

./automate.py builder

If you run the script without any parameters, this will build Document Builder alongside with Document Server and Desktop Editors.

./automate.py

If necessary, you can build several products at once by running the script with the parameters corresponding to the necessary products. To learn more about compiling Document Server you can read this article. To learn more about compiling Desktop Editors please refer to this article.

Wait while the script is being executed. Depending on your computer capabilities, this process may take considerable time. For example, this takes 3 hours at least on Intel Core i7-7700.

The script will compile all the dependencies and components which are a part of Document Builder.

The build will be available in the ../../out/linux_64/onlyoffice/documentbuilder/ directory. Now you can proceed to running Document Builder on your server.

Running Document Builder

Go to the ../../out/linux_64/onlyoffice/documentbuilder/ directory

cd ../../out/linux_64/onlyoffice/documentbuilder

Execute the following command:

./docbuilder

Download
Best editors on your website
Let your site users view, edit and collaborate
on all types of text, spreadsheet and presentation files