Devices for scanning or checking the printed matter for quality control