Script to docs: use free ONLYOFFICE DocBuilder to generate docx, xlsx, pptx, and pdf files

15 August 2019By Nadya

Great news, everyone!

The new version of ONLYOFFICE Document Builder, our library for generating docs, is now available on GitHub on terms of AGPLv3 license.

What is DocBuilder?

ONLYOFFICE Document Builder is a tool for generating docs from JavaScript code. Here’s why it’s cool:

  • It allows generating and modifying docx, xlsx, and pptx files of any complexity.
  • It allows sending docs to a printer and saving them as PDF.
  • It can be integrated with any app written in any language.
  • No need to run an actual editor each time you interact with Office docs in your app.

The source code can be found on GitHub.

Detailed information on how to use DocBuilder can be found in our API documentation.


You can use ONLYOFFICE Doc Builder for free as long as you respect AGPLv3 license.

Get it now

If you want to use it in your proprietary product, contact our sales team at