1. A computer program product residing on a computer readable medium for causing a portable reading device to pre-process a captured image prior to optical character recognition processing, comprises instructions for causing a computer to: detect distortion in an image of a page by measuring an extent to which page boundaries in the image deviate from a simple rectangular shape; and correct for the optical distortion by transforming the image to restore the page to a rectangular shape.