Last modified: 2014-09-27 21:23:36 UTC
Might be non-trivial due to dependency on a djvu reading program ('djvused'), part of djvulibre-bin
I do not think this is really needed. With support of "preload" (see https://bugzilla.wikimedia.org/show_bug.cgi?id=58963), if an Index Page is present on wikisource, one can get page text with the API even if a page is not created yet. This is what I usually do on en.WS.
Change 132816 had a related patch set uploaded by Mpaa: Bug 64853 - Port djvutext.py to core https://gerrit.wikimedia.org/r/132816
https://gerrit.wikimedia.org/r/132816 has been merged. But we don't have djvutext.py, yet.
As I said above, I cannot see a use case. If one has a djvu and wishes to upload the text to wikisource, first of all he will create an Index linked to that djvu. Once that is done, you can fetch the text with the patch above directly from the site. No dependencies, no errors and paginations is handled by the Proofread extensions.