RussCoder / djvujs

DjVu.js is a program library for working with .djvu files online without any connection with the server. DjVu.js Viewer is a widget that allows viewing .djvu files right in the browser and can be easily embedded into any web page.
https://djvu.js.org/
Other
184 stars 37 forks source link

Save unbundled document correctly (or at least issue a warning) #27

Closed jsbien closed 3 years ago

jsbien commented 4 years ago

"Save" saves only the index file. You can test it e.g. on https://djvu.szukajwslownikach.uw.edu.pl/sgkp/01/index.djvu and https://djvu.szukajwslownikach.uw.edu.pl/linde-t/01/index.djvu.

RussCoder commented 4 years ago

This feature may be worth implementing. I think you want to bundle an indirect djvu into one file? It should not be too hard, since there is already some code for creating djvu files in the library, however it will take time to reread the specification and to code the new feature.

jsbien commented 4 years ago

Please do it the easiest way. Perhaps the code of djvu-wget (https://github.com/jwilk-archive/djvu-toolbox) can be of some help.

RussCoder commented 3 years ago

I have implemented the feature in the version 0.5.2.0 of the extension. Already available for Firefox, will be available for Chrome within several days.

When you try to save an indirect djvu there will be a dialog with two options. Try it out.

jsbien commented 3 years ago

It works, thanks.