Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra format support (.doc, .xls, ...) #59

Open
Xandrr opened this issue Sep 13, 2018 · 3 comments
Open

Add extra format support (.doc, .xls, ...) #59

Xandrr opened this issue Sep 13, 2018 · 3 comments

Comments

@Xandrr
Copy link

Xandrr commented Sep 13, 2018

Thank you for this excellent plugin!
Please add some other formats support (.doc, .docx, .xls, .xlsx, .msg, .rtf, .txt, ..)
I see, some document formats are supported by forks of this plugin, but those forks are too old and don`t works with the last redmine.

@tofi86
Copy link
Collaborator

tofi86 commented Nov 28, 2018

@acosonic requested docx support in #62 mentioning https://github.com/lrusso/TinyDOCXViewer as a preview possibility.

Currently I have no time to develop this enhancement but I'm happy about code contributions! :)

@acosonic
Copy link

There is also this library... https://viewerjs.org/ for viewing of odp and pdf's...
Source is located here... https://github.com/kogmbh/ViewerJS

Might be good idea to consider it also...

@acosonic
Copy link

@tofi86 hi, check this out:

https://github.com/HugoHasenbein/redmine_preview_office

I have tested it, and I can confirm it works, what it does, basically, it calls headless libreoffice, and converts docx, and other formats to PDF, then performs preview...

soffice --headless --invisible --convert-to pdf FILENAME

So, basically, you can either use that same peace of code, or make that plugin
as optional dependency...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants