scanline
scanline copied to clipboard
No document was scanned
Hi there,
I tried our scanline but failed somehow - here is what I did.
First I tried the list:
∴ ./scanline -list
2019-02-04 13:49:01:791 scanline[11800:307] Available scanners:
2019-02-04 13:49:01:797 scanline[11800:307] * Samsung M267x 287x Series
The output is correct. Only one printer/scanner available.
Then I tried a test run using the document feeder:
./scanline example
2019-02-04 13:50:36:569 scanline[11830:307] Starting scan...
2019-02-04 13:50:50:423 scanline[11830:307] No document was scanned.
The Problem: The paper was moved through the feeder but no PDF or image was generated. However, the document structure was generated correctly.
Documents -> Archive -> example -> 2019
Then I tried the -v in order to get more infos:
∴ ./scanline -res 300 -v example
... [more log - only the last lines attached] ...
2019-02-04 13:56:36:843 scanline[11863:307] setting functional unit
2019-02-04 13:56:36:843 scanline[11863:307] current functional unit: 3
2019-02-04 13:56:36:843 scanline[11863:307] doc feeder is 3
2019-02-04 13:56:36:843 scanline[11863:307] flatbed is 0
2019-02-04 13:56:36:843 scanline[11863:307] selected functionalUnitType: 3
2019-02-04 13:56:36:843 scanline[11863:307] error: Error Domain=com.apple.ImageCaptureCore Code=-9922 "(null)"
2019-02-04 13:56:36:843 scanline[11863:307] setting functional unit
2019-02-04 13:56:36:843 scanline[11863:307] current functional unit: 3
2019-02-04 13:56:36:843 scanline[11863:307] doc feeder is 3
2019-02-04 13:56:36:847 scanline[11863:307] flatbed is 0
2019-02-04 13:56:36:849 scanline[11863:307] scannerDevice:
ICScannerDevice <0x100227a90>:
delegate : <0x10020a980>
deviceRef : 0x00001219
connectionID : 0x1fc32378
deviceID : 0x00002006
remoteDeviceID : 0x00000000
name : Samsung M267x 287x Series
locationDescription : Samsung M267x 287x Series (SEC001599E35BB2) - 3rd floor
iconPath : /Users/seebi/Library/Application Support/icdd/F3F52100-113E-4328-9722-D91C71120F01.icns
softwareInstallPercentDone : 100.000000
modulePath : /Library/Image Capture/Devices/Samsung Scanner.app
moduleVersion : (null)
moduleExecutableArchitecture : 0
type : 0x00000402
UUIDString : F3F52100-113E-4328-9722-D91C71120F01
persistentIDString : F3F52100-113E-4328-9722-D91C71120F01
autolaunchApplicationPath :
capabilities : ICDeviceCanEjectOrDisconnect
remote : YES
shared : NO
transportType : ICTransportTypeTCPIP
bonjourServiceType : _scanner._tcp.
bonjourServiceName : Samsung M267x 287x Series (SEC001599E35BB2) - 3rd floor
bonjourTXTRecord : {
MDL = <4d323637 78203238 37782053 65726965 73>;
MFG = <53616d73 756e67>;
txtvers = <31>;
ty = <53616d73 756e6720 4d323637 78203238 37782053 65726965 73>;
"usb_MDL" = <4d323637 78203238 37782053 65726965 73>;
"usb_MFG" = <53616d73 756e67>;
}
ipAddress : (null)
ipPort : 0
availableFunctionalUnitTypes : ICScannerFunctionalUnitTypeFlatbed
ICScannerFunctionalUnitTypeDocumentFeeder
selectedFunctionalUnit : ICScannerFunctionalUnitDocumentFeeder <0x1006062f0>
transferMode : ICScannerTransferModeFileBased
downloadsDirectory : file:///var/folders/rl/smdkg9416kn8zp48hmffv21c0000gn/T/
documentName : Scan
documentUTI : public.jpeg
didCompleteScanWithError:
Error Domain=com.apple.ImageCaptureCore Code=-9924 "The scan operation is canceled" UserInfo={NSLocalizedDescription=The scan operation is canceled}
2019-02-04 13:56:36:849 scanline[11863:307] No document was scanned.
2019-02-04 13:56:36:888 scanline[11863:307] creating directory
2019-02-04 13:56:36:889 scanline[11863:307] path: /Users/seebi/Documents/Archive/example/2019
2019-02-04 13:56:36:889 scanline[11863:307] destinationFileRoot: /Users/seebi/Documents/Archive/example/2019/scan_135636
2019-02-04 13:56:36:889 scanline[11863:307] about to copy (null) to file:///Users/seebi/Documents/Archive/example/2019/scan_135636.pdf
Any chance something is interrupting the scan? It looks like it's being cancelled at some point. Does a scan work properly within Preview.app?
You mean with the "Import from ..." Menu Entry. Only when I go to details and change to pdf AND black and white. can I give these options to scanline?
Just to confirm, you're saying that Preview.app gives you a similar error if you don't select black and white?
Ok, I just tested Preview app Import From functionality and it worked without an issue.
Here my latest try
∴ ./scanline -list
Available scanners:
* Samsung M267x 287x Series
Done
∴ ./scanline -a4 -resolution 300 test
Starting scan...
ERROR: The scan operation is canceled
Failed to scan document.
Done
How about if you use more basic options, like ./scanline -bw test
?
ok, ./scanline -bw test
works!!!! Great!
btw: this option is not mentioned in the -help so I got no chance to test it :-)
adding -bw to my calls solves all problems btw (also -a4 and -resolution)
bw
is a synonym for mono
, which is in the help. Is this a black and white scanner?
I have these options:

Interesting. It was probably something else that was causing the problem then. If you just do ./scanline
with no arguments (and nothing in your .scaline.conf
file), you get an error?