跳到主要内容

Installing Document Builder

ONLYOFFICE Document Builder can be installed on various platforms to generate, edit, and convert Office and PDF documents.

注意

The free version of ONLYOFFICE Document Builder includes a watermark on all generated documents. To remove this limitation and access the full feature set, a commercial license is required.

For purchasing details, please contact us at sales@onlyoffice.com.

Prerequisites

  • Python 3.10 - 3.12
  • pip3. Make sure python3 and pip3 are installed in your system. You can check your Python version and pip3 version by using the command in the terminal:
python3 --version
python3 -m pip --version
备注

Use pip and python for Windows. Make sure the executable name is python.exe (default on Windows) and Python is added to your path environment variable.

If you need to install them, you can use the following commands:

sudo apt install python3 python3-pip
信息

You can install python3 and pip3 for macOS with Homebrew using the following command:

brew install python3

Installing

Download the SDK.

备注

For Python, you can use pip3 to install the document-builder library in the terminal:

pip3 install document-builder

Run the samples

Download the document-builder samples:

git clone https://github.com/ONLYOFFICE/document-builder-samples
cd document-builder-samples
  1. Execute configure.py with --test python:
python3 configure.py --test python

Provide the directory to Document Builder with --dir if necessary. It is needed for generating auxiliary module containing the path to Document Builder.

  1. Go to the test directory:
cd python/creating_basic_form
  1. Run the script:
python3 main.py

Documents will be created in the test directory.