SANE backend returning NO_DOCS during sane_read causes warning after last page
The SANE API says that SANE_STATUS_NODOCS can be returned from sane_start or sane_read. Most scanner drivers report it in sane_start, but the Epson Pixma backend ADFs can sometimes only report it after the first sane_read call.
Presently simple-scan will scan all pages and then report a warning that there was a scanner error after the last page when sane_read returns NODOCS, but it's neither a warning or error, really.
Expected behavior on getting a NODOCS from sane_read is to close the document and not give any error/warning notes.
Edited by Ghost User