muk-it / muk_web

MuK Odoo Web Modules
GNU Lesser General Public License v3.0
110 stars 233 forks source link

Error preview files Office #7

Closed Bryanzerool closed 6 years ago

Bryanzerool commented 6 years ago

When viewing a .doc file. docx error message appears PDF.js v1.7.225 (build: 17d135f) Message: Unexpected server response (415) while retrieving PDF "http://ip-server:8069/web/preview/converter/msoffice?url=%2Fweb%2Fcontent%3Fmodel%3Dmuk_dms.file%26filename%3DUna%2Bprueba%2Bmuy%2Bsencilla.dot%26filename_field%3Dname%26field%3Dcontent%26id%3D7%26download%3Dtrue". image

Odoo 11 with all the dependencies installed muk_dms v11.0.1.3.3 muk_web_preview_msoffice v11.0.1.1.0 ubuntu 14.06

keshrath commented 6 years ago

please check if your unoconv is working properly

jorsea commented 6 years ago

image I have the same problem.

keshrath commented 6 years ago

Does the conversion work with unoconv in the console?

jorsea commented 6 years ago

I found a solution to the problem: I use pip3 install pdfconv, but converter.py is not the latest version of the content, open the following link: https://github.com/keshrath/pdfconv/blob/master/pdfconv/converter.py, copy the content, and replace the converter.py that was installed before. It's OK.

keshrath commented 6 years ago

Thx for the info :) I will update the pip repository

Bryanzerool commented 6 years ago

@jorsea your solution did not work, but execute: sudo apt-get install -y unoconv service odoo restart and problem solved, thank you very much for your help

Iskander-NSK commented 6 years ago

Hi! I have a problem with preview docx files in ODOO v10. Error like in first post. Installed: