1. An image output apparatus comprising: a determination unit configured to determine whether a density of a document image exceeds a threshold; and a control unit configured to inhibit an output of a composite image including a two-dimensional bar code and the document image if the determination unit determines that the density exceeds the threshold, and configured to output the composite image including the two-dimensional bar code and the document image if the determination unit determines that the density does not exceed the threshold.