Straighten and deskew the document. Dewarp wavy text lines. Flatten creases and fold lines. Make all text lines perfectly horizontal and straight.