Hello. I want to use “web document builder service” ONLYOFFICE Api Documentation - Web Document Builder API .
I’ve installed Installing ONLYOFFICE Docs for Debian, Ubuntu, and derivatives - ONLYOFFICE on Linux debian 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux
.
builder.CreateFile("docx"); // create a text document file in the .docx format with ONLYOFFICE Document Builder
var oDocument = Api.GetDocument(); // create a new 'oDocument' variable and get the created text document contents
var oParagraph; // create the 'oParagraph' variable
oParagraph = Api.CreateParagraph(); // create a new paragraph
oParagraph.SetJc("center"); // set the paragraph justification to center the text
oParagraph.AddText("Center"); // add a text containing a single 'Center' word to the paragraph
oDocument.Push(oParagraph); // push the created paragraph contents with the 'Center' word to the document
builder.SaveFile("docx", "example.docx"); // save the resulting text document as a file in the .docx format with the 'example.docx' name
builder.CloseFile(); // close the text document file and finish work with ONLYOFFICE Document Builder
Script is ok because I’ve checked it on standalone documentbuilder which do as expected.
normaluseracc@debian:~$ curl -i -X POST -d '{"async": true,"url": "http://192.168.159.131/test.docbuilder"}' http://192.168.159.131/docbuilder;echo
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 20 Oct 2023 05:40:38 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 42
Connection: keep-alive
Vary: Accept-Encoding
ETag: W/"2a-cK53SbykC0IhGZN1KRsDuMNDPt8"
{"key":"bld_331a38c617663964","end":false}
normaluseracc@debian:~$ curl -i -X POST -d '{"async": true,"key": "bld_331a38c617663964"}' http://192.168.159.131/docbuilder
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 20 Oct 2023 05:41:09 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 12
Connection: keep-alive
ETag: W/"c-5lC/GNXd6iIppom73lLvBY0S2ZI"
{"error":-4}
Questions
-
Does ONLYOFFICE Docs Community Edition include “web document builder service”?
-
If it does – how can one find out more than “error code -4” and troubleshoot it?