OnlyOffice and Printing

Hi ,

I have no problem creating en editing documents in onlyoffice but when i want to print a document i get the message

Warning
You are trying to perform an action you do not have rights for.
Please contact your Docuemnt Server administrator.

I allready setup working with secret key, but this made no difference. I googled my ass of but could find the solution.

furthermore i installed the latest docker version (document editor 5.4.0) and the latest nextcloud (16.0.4). The nexcloud app version is 2.4.0

Have someone printing working within onlyoffice started from nextcloud.

Thanks in advance

Gerard

Is the NC app “printer” working? I’m just asking that to get an idea of you can print at all on your server.

With Onlyoffice in a docker container it could be necessary to open the port for printing on the docker container.

Just giving this as an idea where to look for solutions. I haven’t tried printing myself yet and therefor have no real solution.

Still no luck with printing or “Save document as”

I still get the message:
Warning
You are trying to perform an action you do not have rights for.
Please contact your Docuemnt Server administrator.

Even change of the source code of the file …/apps/onlyoffice/controller/editorcontroller.php line 646 and 647 (change false into true)
if (method_exists($share, “getHideDownload”) && $share->getHideDownload()) {
$params[“document”][“permissions”][“download”] = true;
$params[“document”][“permissions”][“print”] = true;

Didn’t solve my problem. I hope someone can help me with this problem.

Perhaps this is related - meaning ‘save as’ and ‘printing’ (guessing that printing means for onlyoffice: creating a pdf and opening the browser print dialog).
And my search would be somewhere in the directory permissions.

  1. in nextcloud. What are they for the data-directories?
  2. if that is good for your webserver to write - what about your docker installation? Can onlyoffice write cache-files to the underlying filesystem? Are you running docker as root or as a special docker-user?

In retrospect I would perhaps check 2 before 1.

Best, Bernd