Patent ID: 8384966

Claim:
An image forming device comprising: a unit configured to obtain an image by scanning a printed document; a unit configured to determine whether the obtained image includes a first type of code image or a second type of code image; a unit configured to determine whether the first type of code image or the second type of code image is to be embedded in the obtained image; and a generation unit configured to (a), when it is determined that the obtained image includes the first type of code image and that the second type of code image is to be embedded in the obtained image, regenerate the first type of code image based on information included in the first type of code image in the obtained image, combine the second type of code image with the obtained image to obtain a combined image, combine the regenerated first type of the code image with the combined image to obtain another combined image and output the another combined image, and (b), when it is determined that the obtained image includes the second type of code image and that the first type of code image is to be embedded to the obtained image, combine the first type of code image with the obtained image to obtain another combined image and output the another combined image, wherein the first type of code image is a code image which is combined with a part of an image and the second type of code image is a code image which is combined with an entire image.