Overview
Office API allows you to insert content into a document and format it to your liking quickly and easily. Any document is a composite object: a tree of larger nodes (paragraphs and tables) into which you can insert smaller document elements (text runs, images, charts, shapes).
Office API is the JavaScript library which is used to work with the document editor. It contains classes and methods for every document type: Document API, Spreadsheet API, Presentation API, Form API, and PDF API.
Where to use
Here are some examples of where you can use Office API:
- build plugins using Office API in the plugin code
.jsfile to interact with the editor content and web services; - write macros using the JavaScript syntax and Office API scripting notation;
- generate documents using Office API in the Document Builder scripts;
- interact with the editor content from your own interface using the Automation API connector, available only for ONLYOFFICE Docs Developer.