Here are the sources for the djvu plugin. I basically copied the pdf plugin (from firmware version 1.7) and reimplemented just enough of the poppler API with djvulibre to make it work with the rest of the plugin (the new files are src/pdf_doc.cpp and inc/pdf_doc.h ).
I haven't changed the names of the files or classes. Most files are unchanged, and the changes in the other files are small (changing ".pdf" extension to ".djvu", poppler includes to "pdf_doc.h").
The source is slighly different from the last (0.1.3) binary release. I also removed the dependency on poppler and included only the 'goo' library. This should make it easier to port to the dr800 and the upcoming dr1000 firmware that will use the adobe pdf viewer instead of poppler.
|