Skip to main content

OnlyOffice

OnlyOffice is an online and on-premises application that allows you to create and edit documents on the web without the need of any word processing software. OnlyOffice integration appears in LogicalDOC as an entry in the Tools menu. From the submenu, you can choose to edit text documents, calculation sheets, and presentations, create new documents.

The first time you want to use OnlyOffice from within LogicalDOC, you have to properly configure the connection with OnlyOffice, please read the guide Configuring OnlyOffice

Edit a Document

Select the document you wish to edit, and choose Tools OnlyOffice > Edit document. The document will open in the editor, allowing you to modify its contents.

Calendar

While you are editing a file in LogicalDOC the document is locked, each time you save your work a new release gets checked in and the document gets unlocked as soon as you complete your editing session.

Create a new Document

Select Tools > OnlyOffice > Create document to open a blank document to modify.

Configuring ChatGPT API

Before you can start integrating LogicalDOC with ChatGPT’s API, you need to get an API key to access it.

1

Create an account

You can create a free account by signing up here

2

Generate an API key

Once logged it, move to the platform website https://platform.openai.com

Here create a new project, call it LogicalDOC:

Create ChatGPT project

Then move to the created project, click on Generate new secret key and enter a name for your key in the pop-up window. After entering a name, click Create secret key

Create ChatGPT key

On the next screen, copy your API Key and store it somewhere safe. You will not be able to view it again.

Save ChatGPT key

3

Set up billing

OpenAI implements a pay-per-use model for its API services. Therefore, it's essential to establish a payment method for billing purposes. Without this setup, the newly-created API Key will be inactive.

For billing configuration, go to your profile's section and select Billing from the left-hand menu, and then choose Add payment details.

ChatGPT billing

4

Set the Key in LogicalDOC

Open LogicalDOC, select whatever folder in the folder's tree and open the menu Tools > ChatGPT > Settings

Here, put the key you saved at step 2 and specify the ChatGPT model you want to use (at the time of writing the default model is gpt-4o).

ChatGPT settings

Then press on Ok and you’re done.

Configuring OnlyOffice

You can create a connection between your OnlyOffice and LogicalDOC. This way, you will be able to use OnlyOffice to edit and create documents stored inside LogicalDOC. OnlyOffice can be used in several ways online and on-premises but at the time of writing LogicalDOC has been tested against OnlyOffice Document Server for Docker and this guide is based on the official tutorial.

1

Running Docker Image

In a minimum sized machine with Docker version 1.9.0 or later, use this command if to install OnlyOffice Document Server:

sudo docker run -i -t -d -p 8084:80 --restart=always -e JWT_SECRET=my_jwt_secret onlyoffice/documentserver

This command starts the Docker container with standard settings and set up the working port to 8084, feel free to change it at your will.

2

Connecting LogicalDOC with OnlyOffice

The integration with OnlyOffice is implemented by a proper format converter that must be properly enabled and configured.

Go to Administration > Import and Export > Format Converters, and here locate the converter called OnlyOfficeConverter, enable it and expand its configuration to accommodate the connection parameters:

  • url:  the address to communicate with your OnlyOffice Document Server
  • security.key: in case of standard setup, you can use my_jwt_secret
  • callback: the address that OnlyOffice Document Server will use to call your LogicalDOC

Then press on Save and you’re done.

PowerPoint Addin

You can edit a PowerPoint document simply selecting the item and then click on the [Edit with Office] icon. After that, the document is visualized into Microsoft PowerPoint.

edit-with-office
 

When the editing is completed, you must select the [LogicalDOC] tab and then click on [Save in LogicalDOC] button.

The new document file is saved into the system and a new version on the document is stored into the documents archive.

Microsoft Office Addin

You can edit all Office documents directly in Word, Excel or PowerPoint and save them into the documents archive.

Pre-requisites

You need Microsoft Office.

You have to install in your Windows PC the latest LogicalDOC Office Addin available in the download website.