owncloud-archive / apps

Repo for ownCloud apps. Code here is work in progress and not intended for endusers
373 stars 337 forks source link

add support for doc/odt/xls/ods/etc in files_pdfviewer #1631

Open bsavelev opened 10 years ago

bsavelev commented 10 years ago

Hello! In #125 I prepare some hack for preview office docs. May be it can be included in app:files_pdfviewer?

karlitschek commented 10 years ago

Can you open a pull request so that we can discuss this?

bsavelev commented 10 years ago

Hello! Open pull request, but code is still dirty(

armbrust80 commented 10 years ago

If I change the Files: files_pdfviewer/3rdparty/pdfjs/viewer.js files_pdfviewer/convert.php files_pdfviewer/js/files.php files_pdfviewer/js/loader.js

I have a problem, I can open .pdf, but if I open an .doc File, it come a error. The LOG says Error PHP unlink(/tmp/b4b5f9762c569bc96e8090fe572624cfdocx.pdf): No such file or directory at /var/www/owncloud/apps/files_pdfviewer/convert.php#26 2014-03-12T13:14:28+00:00

Error PHP readfile(/tmp/b4b5f9762c569bc96e8090fe572624cfdocx.pdf): failed to open stream: No such file or directory at /var/www/owncloud/apps/files_pdfviewer/convert.php#25

What is the Problem I have?

bsavelev commented 10 years ago

see https://github.com/owncloud/apps/pull/1666 this problem was fixed there

armbrust80 commented 10 years ago

What I must do? "fix unlink tmp files" was not successful

armbrust80 commented 10 years ago

Please help

bsavelev commented 10 years ago

libreoffice installed? is it in PATH? any php errors?

armbrust80 commented 10 years ago

Libreoffice, that was it. Thank you so much!

etiess commented 10 years ago

Hi @bsavelev and @armbrust80 Is it supposed to work now? I'm on 7.0.2 , I can see PDF files in the viewer, libreoffice is installed, I can edit .doc or .docx files, but I can't see them in the viewer when I click on them (the page is blank, with the OC bar at the top, and a button "Close") What's the status? Thanks!