Scanned documents commonly suffer from skew and redundant edges when a paper document is scanned and saved as an image file. In this paper, we propose an improved algorithm that can automatically deskew and crop scanned documents. To improve the accuracy of edge detection, the image edge can be made salient based on different edge types. The estimation of the deskew and the cropping value can benefit from the salient image edge. This paper also adopts the improved region growing method to automatically obtain the cropping value to crop the scanned image. The proposed method mainly includes image preprocessing, image classification, skew angle estimation, deskewing and cropping; estimation of the cropping values is based on different image types. Compared with the previous algorithms, the proposed algorithm not only has good anti-interference ability, but can also accurately estimate the cropping value and skew angle. Since the scanned images in the database from DISEC'2013 do not have redundant edges, another experiment with redundant edges must be performed with our database. The experimental results illustrate that the proposed method performs better than other methods. [ABSTRACT FROM AUTHOR]