Software solution for duplex scanning on printers with document feeder and simplex scanning support