1. A document management system in which an image forming apparatus that transmits scanned data generated by scanning a document to an analysis server and which outputs the scanned data to a storage destination determined from among one or more storage destination candidates corresponding to the scanned data received from the analysis server, and the analysis server that analyzes the scanned data received from the image forming apparatus and which transmits the one or more storage destination candidates that are output as the results of the analysis to the image forming apparatus are connected via a network, wherein the image forming apparatus comprises: a notification unit configured to notify the analysis server of the start and end of a continuous scan scanning a plurality of documents relating to one another; a reception unit configured to receive first storage destination candidates corresponding to a plurality of pieces of scanned data in response to transmission of the plurality of pieces of scanned data generated between the start of the continuous scan and the end of the continuous scan to the analysis server; a determination unit configured to determine the storage destination of the plurality of pieces of scanned data from among the first storage destination candidates; and an output unit configured to output the plurality of pieces of scanned data to the determined storage destination, and the analysis server comprises: a first analysis unit configured to collectively analyze the plurality of pieces of scanned data received between the start of the continuous scan and the end of the continuous scan in response to notification of the end of the continuous scan from the notification unit; and a transmission unit configured to transmit the first storage destination candidates that are output as the results of the analysis to the image forming apparatus.