Step Two - Install Necessary Packages

Get these kosher Debian packages with apt install ...

  • djvulibre-bin

  • img2djvu

  • djview4

Step Two - Take Photos

I used the full 6000x4000 setting. Camera clamped to table pointing down with documents a couple feet away. Av mode.

Step Three - Convert To DJVU

To convert to DJVU format from camera JPEGs use the program cc4.

The basic idea is you want c44 inputfile outputfile but this is a CPU intensive task and it’s helpful to use Bash tricks to get all your cores working on the stack. Here’s a way that managed to do 100 pages on 20 cores in about 15 seconds.

( for F in *JPG; do echo $F; c44 $F DJVU/${F%%.JPG}.djvu & done && wait ) && echo "JPEG to DJVU conversion complete..."

Step Four - Assemble Into Multi-Page Document

Use the djvm program. The -c is for create.

djvm -c full_report.djvu IMG*.djvu

Step Five - View This Document

Use djview (or djview4 which I think is an alias).

djview full_report.djvu

Note that you can rotate the presentation with this viewer’s menu settings.

Other viewers are rumored to include:

  • Okular

  • Evince

  • Zathura