Closed trenkert closed 9 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!
What would be a good starting point? I don't have much experience with addon development.
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.
Closing since it a significant amount of work that I don't intend on pursuing myself.
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!