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 first memory for storing a first computer program; and a first processor for executing the first computer program to perform a first process comprising: notifying the analysis server of the start and end of a continuous scan scanning a plurality of documents relating to one another; receiving 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; determining the storage destination of the plurality of pieces of scanned data from among the first storage destination candidates; and outputting the plurality of pieces of scanned data to the determined storage destination, and wherein the analysis server comprises: a second memory for storing a second computer program; a second processor for executing the second computer program to perform a second process comprising: collectively analyzing 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 image forming apparatus; and transmitting the first storage destination candidates that are output as the results of the analysis to the image forming apparatus.