Background:
Most A4 (MP 300/400, 301, 305) devices have this limitation because they do not support auto detection for scanning via the ADF. They are missing the hardware sensor. In your application you will have to manually set the paper size and sides (LEF/SEF) before scanning via the ADF. See below limitation:
This device can handle below scanning options only:
-Can scan images in SEF (Short Edge First) orientation only. ADF does not support LEF (Long Edge First)
-This device does not have the paper ‘Auto Detect’ option. Users have to input the supported paper size before starting a scan.
* This device scanner supports the following paper sizes:
ADF /Glass width -- 216 mm or 8.5inches
ADF length -- 1260 mm or 49.6 inches
Glass length - 297 mm or 11.7 inches
** So based on the above ADF & Glass size limitations, the SDK/J application/solution must lock down to the supported paper size in order to scan successfully from this device. **.
The workflow that you application may provide is
Device that support Auto-detect:
- NO paper on feeder and NO paper on glass -> No scan
- Paper on feeder and NO paper on glass -> Scan from feeder
- NO paper on feeder and paper on glass -> Scan from glass
- Paper on feeder and paper on glass -> Scan from feeder
Devices that do not support Auto-detect:
- NO paper on feeder and NO paper on glass -> Scan from glass (blank page will occur)
- Paper on feeder and NO paper on glass -> Scan from feeder
- NO paper on feeder and paper on glass -> Scan from glass
- Paper on feeder and paper on glass -> Scan from feeder
The device native scan functions performs a check on the To detect if the scanner model will give you a valid ORIGINAL_LEFT, try to see if you set the scanner to manual and set a page size and then try to scan. If that case does not work, than you can assume that it wont give you this message. ADF first and then a check on the platen, so if your application can follow this format then the above should work out.
Added feature to Check Availability of Document Size Auto Detect
For SDK/J version 12.00 and later, the feature to check the availability of Letter and Legal(LT/LG) mixed size setting is now supported.
Since this feature is supported, behaviors of LT/LG mixed size scan can be controlled in the same way as for the standard scanner application. “LT/LG mixed size scan” is the scanning feature supported for the models that can only auto detect Letter and Legal sizes; when a document which contains both Legal and Letter is set to the document feeder, each size is automatically detected.
Important PDF Documents: sdkj_xlet_develop_scan_exxx.pdf and sdkj_important_eRxxx.pdf
Programmatically recognizing the device:
Below is information on devices that have the above limitation with their corresponding hex values. (information is available in the model information documentation)
6.x
MP 171 -> 4b0002
MP 201 -> 5e0002
7.x
MP C300 Series -> 5b0001
MP C400 Series -> 5b0002
SP 5200/5210 SF/5210 SR -> 5c0002
10.x
MP C305 -> 670001
MP 301 -> 670001
11.x
SP 4510 SF / MP 401 SPF -> 700004
SP 4510 DN
SP 4520 DN
12.x
MP C401
MP C306
MP C406
MP 501SPF
MP 601SPF
MP 402SPF
MP C407SPF
MP C307SPF
SP C440DN
SP C342DN
--------------
To programmatically identify the older devices (11.x and below) you can use or create something similar to the following approach:
//
// hex values for unsupported AutoDection devices
private static String[] unsupportedModels = {"5b0001", "5b0002","5c0002","670001", "670002", "700004","790001", "790002"};
public static String getModelName() {
return System.getProperty("dsdk.machine.model.name");
}
public static boolean checkUnsupportedAutoDectModels() {
System.out.println("check for unsupported model");
for (int i=0; i < unsupportedModels.length; i++) {
if ( getModelName().startsWith(unsupportedModels[i])) {
return true;
}
}
return false;
}