thunderbird-conversations / thunderbird-conversations

An extension for Thunderbird that allows you to view threads as "real" conversations, including your own emails. This extension also adds a bunch of useful UI features in the conversation view.
https://github.com/thunderbird-conversations/thunderbird-conversations/wiki
Mozilla Public License 2.0
654 stars 109 forks source link

Replace pdf.js with viewer.js for more preview options #843

Closed trenkert closed 9 years ago

trenkert commented 10 years ago

Can you replace pdf.js with viewer.js (http://viewerjs.org/)?

Viewerjs integrates pdf.js but also WebODF which provides the ability to also view - and edit! - odf documents (see here: http://www.webodf.org/demo/ci/wodotexteditor-0.5.2/localeditor.html).

Use case: I often get documents for review where I have to make some minor changes before sending them back. Traditionally, I have to save the attachment, open Libreoffice or Word, make the changes, save them, and write a response with the altered file as an attachment.

If WebODF can be integrated with Thunderbird, this should only be two step instead of five.

Also, I think this would be a great addition to Thunderbird Conversations at a relatively low cost!

protz commented 10 years ago

Well, why not, it's just that since it's in the context of an addon, it's a little bit tricky to integrate that sort of libraries. I had to use some tricks to feed the PDF data (which is an attachment) into the pdf.js viewer. I don't have much time now, but if you are interested tackling this, I would definitely be happy to provide guidance!

trenkert commented 10 years ago

What would be a good starting point? I don't have much experience with addon development.

protz commented 10 years ago

If you experience with web development, I think you need to follow the instructions from https://developer.mozilla.org/en/Setting_up_extension_development_environment ; once you have the addon running "from source", the viewer is in content/pdfviewer/viewer.xhtml . Then, it's just a matter of modifying the bundled web page that acts as the pdfviewer to include the alternative viewer you mention.

protz commented 9 years ago

Closing since it a significant amount of work that I don't intend on pursuing myself.