Technical Foundations For Document Imaging