In the conventional document processing apparatus, when the input document has a tilt, the tilt is detected and corrected, thereby easily understanding the structure such as a layout or performing subsequent processing of reading characters recorded on the input document.