Streamlined postprocessing for turning raw document scans into compressed ebooks.