[sane-devel] When is end of scan in a multipage doc?

Henning Meier-Geinitz henning@meier-geinitz.de
Sun, 16 Jan 2005 17:45:35 +0100


Hi,

On Thu, Jan 13, 2005 at 02:32:49PM -0600, Chris Ward wrote:
> I am trying to write a scanner front end, and I am having trouble 
> knowing when I should stop scanning when I am using a feeder.
> 
> I was checking parms.lastFrame after calling parms = sane.getParameters
> 
> Also, are some of the backends broken in regards to this? I found 
> someone that said the hp driver was, and that is what I am using.

I would jsut call sane_start until the backend responds with "no docs"
or some other error. Some hardware may not know if there is another
page until actaully trying to scan it.

Bye,
  Henning