1. An apparatus having a control unit configured to perform detection processing of an encoded image for a document image, add a different encoded image to a document image from which an encoded image is detected by the detection processing, and output the document image, wherein the control unit does not output the document image to which the different encoded image is added upon receipt of an instruction not to perform the detection processing from a user.