In this paper, we address the problem of discovering the 3D shape of a book surface from the shading information in a scanned document image. This shapefrom-shading problem is characterized in real world environments by a proximal and a moving light source, Lambertian reflection and a non-uniform albedo distribution. By considering all these factors, we first build the practical model (consists of geometric model and optical model) to reconstruct the 3D shape of book surface. We next restore the scanned image using this shape based on two models, namely de-shading and dewarping models. Finally, we compare the OCR results on the original and restored document image. The experiments show that the geometric and photometric distortions are mostly removed and the OCR results are improved markedly.