Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Display multiple file formats as embedded media (ePub, ODF, PDF)

Open designgurudotorg opened this issue 9 years ago • 11 comments

It seems to me that there's massive interest in this functionality and implementation shouldn't be too difficult - basically, it would be great if any ODF, PDF or ePUB document is uploaded it automatically becomes viewable within the chat area using one of the following Open Source scripts:

https://github.com/futurepress/epub.js/ http://viewerjs.org/

I don't have great JS chops so I can't unfortunately whip up a pull request but perhaps someone reading this could? Or alternatively maybe there's a quick way to automatically rewrite the URLs to document uploads and render them with these scripts just in Administration > Layout > Custom Scripts?

q./

ref: https://github.com/RocketChat/Rocket.Chat/issues/2741 & https://github.com/RocketChat/Rocket.Chat/issues/255

designgurudotorg avatar Mar 30 '17 13:03 designgurudotorg

is there any progress on this task? Thanks

arjamizo avatar Apr 24 '17 12:04 arjamizo

I am interested in a pdf viewer for RocketChat.

Is there a reason why this functionality was not included when the image viewer plugin was created? Are there patches to the RC Linux client available that add a pdf viewer? How bout for Windows?

Running RC Client on Ubuntu Linux 16.04.2 LTS Desktop Running RocketChat 0.56 Server on Ubuntu Linux 16.04.2 LTS Server

ml48603 avatar Jun 27 '17 18:06 ml48603

Pls update on status of enabling an embedded file viewer for PDF files. This is the #1 file interchange format so I believe it should be high on the roadmap to support an internal viewer rather than downloading a file each time. This is even more the case since RocketChat does not seem to support a full-screen Markup editor to create posts (as Slack does), meaning that with Rocket.Chat you need to create a file and upload it for long-form post, so it should be inline viewable. Even if you can only do a preview of 1st page in PDF file it would be useful.

bayareacoder avatar Jul 17 '18 19:07 bayareacoder

Any news on this? This is also something we are missing. :(

tobzsc avatar Sep 27 '18 12:09 tobzsc

+1

beranPro avatar Oct 05 '18 12:10 beranPro

Can this functionality be added as a plug-in to exiting RC Clients? Or would the new functionality need to be programmed into the core of the client? Are there technical reasons that make the addition of this functionality particularly challenging? Does a bounty need to be offered to get this project moving for RC Clients supporting Android, Windows, Ubuntu platforms? Is there a system for multiple people to come together and commit to a bounty as a group? (So people pledging to pay a bounty don't back out when the project is done.)

ml48603 avatar Oct 06 '18 14:10 ml48603

+1 Any news here ? This is implemented in all the other solutions like Slack, HipChat ect... For me it would actually be enough to see the downloaded files in a list or something in the chat and then open it in the appropriate Program when I click it. And an auto-download destination so that you don´t have to select where to download it to every time.

FabianZimbalev avatar Nov 27 '18 09:11 FabianZimbalev

@ggazzo @tassoevan can you add some update here?

rodrigok avatar Nov 27 '18 11:11 rodrigok

For PDFs this Issue should resolve it: https://github.com/RocketChat/Rocket.Chat/pull/10519 I'm not sure about previews for other file types

reetp avatar Nov 27 '18 16:11 reetp

@ggazzo spotted the issue; I'm preparing a correction for it.

tassoevan avatar Nov 27 '18 19:11 tassoevan

This has been implemented for PDF and also deployed. We'll accept Pull Requests for other formats. Thanks.

marceloschmidt avatar Nov 29 '18 13:11 marceloschmidt