1. An image processing apparatus comprising: an extraction unit configured to extract a foreground image from an obtained image; and a generation unit configured to, in a case where the foreground image is extracted by said extraction unit, generate the foreground image as an image for one page, and in a case where the foreground image is not extracted by said extraction unit, generate, as an image for one page, an image indicating that the foreground image is not extracted.