1. A method of inserting an image into an electronic document, the method comprising: by at least one hardware processor: performing at least one process selected from: extracting a text as an image format included in image data, the extracted text being within a predetermined distance from the image included in the image data, and recognizing at least one attribute of the image as the image format included in the image data; receiving identification information and setting information of specifying a position in the electronic document where the image is to be inserted; determining whether the identification information matches the image in response to matching of at least one of the identification information to at least one information selected from the extracted text being within the predetermined distance from the image and the recognized at least one attribute of the image; and in response to the determining that the identification information matches the image, inserting the image into the electronic document, according to the setting information.