1. An image forming apparatus that analyzes and prints a job including a plurality of documents, comprising: a management unit configured to obtain information of a page to be printed, which is designated in the job, and manage the information as a print range; and an analysis unit configured to analyze each of the plurality of documents included in the job, wherein said analysis unit calculates the number of pages of each of the plurality of documents, and based on the number of pages of each of the plurality of documents, specifies the page to be printed indicated by the print range out of the plurality of documents.