1. An apparatus comprising: a character extraction unit configured to extract a character string from a document including layout information; a character width acquisition unit configured to acquire space character width information; a spacing amount determination unit configured to determine a spacing amount of each inter-character space based on the character string extracted by the character extraction unit and the layout information; and an insertion unit configured to determine whether a space character is to be included in each inter-character space based on the spacing amount of each inter-character space determined by the spacing amount determination unit and the space character width information acquired by the character width acquisition unit, and to insert a space character code into an inter-character space in which a space character is determined to be included.