A device comprising: an obtaining unit configured to obtain embedded information of a two-dimensional code from an input image; and a first determining unit configured to determine to permit printing of the input image in a case (S905 NO) that the obtaining unit does not obtain embedded information of the two-dimensional code from the input image, and to determine whether to permit or prohibit printing of the input image based on copying control information in the embedded information in a first case (S905 YES) that the obtaining unit obtains embedded information of the two-dimensional code from the input image; characterized by a second determining unit configured to determine whether embedded information of the two-dimensional code obtained from the input image by the obtaining unit includes version information related to a format of copying control information that is supported by the device or version information related to a format of copying control information that is not supported by the device; and the first determining unit being adapted to determine whether to permit or prohibit printing of the input image based on copying control information in the embedded information including the version information related to a format of copying control information that is supported by the device in a second case (S921 YES) that, when the obtaining unit obtains embedded information of two or more two-dimensional codes from the input image, the second determining unit determines that one or more pieces of the embedded information include the version information related to a format of copying control information that is supported by the device, and to determine to prohibit printing of the input image in a third case (S921 NO) that, when the obtaining unit obtains embedded information of two or more two-dimensional codes from the input image, the second determining unit determines that no piece of the embedded information includes the version information related to a format of copying control information that is supported by the device. an obtaining unit configured to obtain embedded information of a two-dimensional code from an input image; and a first determining unit configured to determine to permit printing of the input image in a case (S905 NO) that the obtaining unit does not obtain embedded information of the two-dimensional code from the input image, and to determine whether to permit or prohibit printing of the input image based on copying control information in the embedded information in a first case (S905 YES) that the obtaining unit obtains embedded information of the two-dimensional code from the input image; to determine to permit printing of the input image in a case (S905 NO) that the obtaining unit does not obtain embedded information of the two-dimensional code from the input image, and to determine whether to permit or prohibit printing of the input image based on copying control information in the embedded information in a first case (S905 YES) that the obtaining unit obtains embedded information of the two-dimensional code from the input image; characterized by a second determining unit configured to determine whether embedded information of the two-dimensional code obtained from the input image by the obtaining unit includes version information related to a format of copying control information that is supported by the device or version information related to a format of copying control information that is not supported by the device; and the first determining unit being adapted to determine whether to permit or prohibit printing of the input image based on copying control information in the embedded information including the version information related to a format of copying control information that is supported by the device in a second case (S921 YES) that, when the obtaining unit obtains embedded information of two or more two-dimensional codes from the input image, the second determining unit determines that one or more pieces of the embedded information include the version information related to a format of copying control information that is supported by the device, and to determine to prohibit printing of the input image in a third case (S921 NO) that, when the obtaining unit obtains embedded information of two or more two-dimensional codes from the input image, the second determining unit determines that no piece of the embedded information includes the version information related to a format of copying control information that is supported by the device. to determine whether to permit or prohibit printing of the input image based on copying control information in the embedded information including the version information related to a format of copying control information that is supported by the device in a second case (S921 YES) that, when the obtaining unit obtains embedded information of two or more two-dimensional codes from the input image, the second determining unit determines that one or more pieces of the embedded information include the version information related to a format of copying control information that is supported by the device, and to determine to prohibit printing of the input image in a third case (S921 NO) that, when the obtaining unit obtains embedded information of two or more two-dimensional codes from the input image, the second determining unit determines that no piece of the embedded information includes the version information related to a format of copying control information that is supported by the device.