tiredofit / docker-collabora-online

Dockerized Online Office Suite with customizable options
MIT License
80 stars 27 forks source link

PDF Preview turns into garbled text or stuck with loading page #10

Closed ryukenji3 closed 3 years ago

ryukenji3 commented 3 years ago

Hey Tiredofit,

I use this project as the preview server of nextcloud, and everything just works fine (docx/pptx/xlsx/png/) but PDF. PDF files always turns into garbled text(small files) or stuck with loading page(10MB+).

Also tried the official collabora image, basically the same parameters, the official one will be able to preview PDF.

No way out,I turned the log level to trace and set it to debug mode, opened only two files with nextcloud, test.docx & test.pdf, which are fully documented in this log.

lool.log

my docker-compose.yml like this:

version: '3.7'
services:

   libreoffice-app:
      image: tiredofit/libreoffice-online
      container_name: office
      ports:
        - 9980:9980
      cap_add:
        - MKNOD
      environment:
        - ADMIN_USER=admin
        - ADMIN_PASS=admin
        - ALLOWED_HOSTS=*
        - DICTIONARIES="en_GB en_US"
        - LOG_LEVEL=trace
        - LOG_TYPE=FILE
        - DEBUG_MODE=TRUE
        - ENABLE_TLS=FALSE
        - ENABLE_TLS_REVERSE_PROXY=FALSE
        - ENABLE_TLS_CERT_GENERATE=FALSE
        - EXTRA_OPTIONS=--o:ssl.enable=false --o:ssl.termination=false
ryukenji3 commented 3 years ago
image
ryukenji3 commented 3 years ago

resolved in 2.0.0, thanks @tiredofit

image