1. A method of inserting an image into an electronic document, the method comprising: receiving, by a processor, setting information for designating a position where the image is to be inserted into the electronic document and identification information regarding the image; determining whether the image included in image data corresponds to the identification information by using a result of analysis of the image data; and inserting, based on a result of the determination, the image corresponding to the identification information into a position of the electronic document, according to the setting information.