A document scanning system for sorting documents into one of a plurality of output trays (214, 216), the document scanning system comprising: a plurality of output trays (214, 216); a processor; an input tray for holding document sheets to be scanned; a feeder roller configured to transport a document sheet from the input tray into a paper transport path within the scanning system; drive motors (211, 212, 213) and transport rollers configured to move the document sheet along the paper transport path; detection sensors configured to detect the leading and trailing edges of the document sheet transported along the paper transport path; and at least one imaging device configured to image the document sheet and provide digital image data to the processor; characterised by further comprising: at least one switching mechanism configured to alter the paper transport path to end in a selected one of the plurality of output trays (214, 216), wherein output trays (214, 216) are selected based on analysis of the digital image data by the processor, wherein one detection sensor is located at a position past the switching mechanism; wherein, when the leading edge is (500, 501) past the switching mechanism, the motors (211, 212, 213) are configured to reverse the direction of transport of the document sheet within the document scanning system until the leading edge is at a position before the switching mechanism; wherein the processor is configured to: determine the length of the document sheet and calculate the distance needed to reverse the document sheet so that its leading edge is positioned before the switching mechanism; and direct the drive motors (211, 212, 213) to move the transport rollers so that the document sheet moves the calculated distance in the reverse direction, ending at least at a position just before the switching mechanism. a plurality of output trays (214, 216); a processor; an input tray for holding document sheets to be scanned; a feeder roller configured to transport a document sheet from the input tray into a paper transport path within the scanning system; drive motors (211, 212, 213) and transport rollers configured to move the document sheet along the paper transport path; detection sensors configured to detect the leading and trailing edges of the document sheet transported along the paper transport path; and at least one imaging device configured to image the document sheet and provide digital image data to the processor; characterised by further comprising: at least one switching mechanism configured to alter the paper transport path to end in a selected one of the plurality of output trays (214, 216), wherein output trays (214, 216) are selected based on analysis of the digital image data by the processor, wherein one detection sensor is located at a position past the switching mechanism; wherein, when the leading edge is (500, 501) past the switching mechanism, the motors (211, 212, 213) are configured to reverse the direction of transport of the document sheet within the document scanning system until the leading edge is at a position before the switching mechanism; wherein the processor is configured to: determine the length of the document sheet and calculate the distance needed to reverse the document sheet so that its leading edge is positioned before the switching mechanism; and direct the drive motors (211, 212, 213) to move the transport rollers so that the document sheet moves the calculated distance in the reverse direction, ending at least at a position just before the switching mechanism. at least one switching mechanism configured to alter the paper transport path to end in a selected one of the plurality of output trays (214, 216), wherein output trays (214, 216) are selected based on analysis of the digital image data by the processor, wherein one detection sensor is located at a position past the switching mechanism; wherein, when the leading edge is (500, 501) past the switching mechanism, the motors (211, 212, 213) are configured to reverse the direction of transport of the document sheet within the document scanning system until the leading edge is at a position before the switching mechanism; wherein the processor is configured to: determine the length of the document sheet and calculate the distance needed to reverse the document sheet so that its leading edge is positioned before the switching mechanism; and direct the drive motors (211, 212, 213) to move the transport rollers so that the document sheet moves the calculated distance in the reverse direction, ending at least at a position just before the switching mechanism. determine the length of the document sheet and calculate the distance needed to reverse the document sheet so that its leading edge is positioned before the switching mechanism; and direct the drive motors (211, 212, 213) to move the transport rollers so that the document sheet moves the calculated distance in the reverse direction, ending at least at a position just before the switching mechanism.