[sane-devel] Max Scan Area from ADF

Ilia Sotnikov hostcc at gmail.com
Tue Feb 22 20:20:57 UTC 2011


On Tue, Feb 22, 2011 at 7:54 PM, manuel <mixkeysweis18 at yahoo.com> wrote:
> Hi, I have a hp5590 scanner, it works fine in WindowsXP but has a problem with
> the sane (Ubuntu).
> When I try to scan a Legal size page from ADF source, simply the sane-backend
> restricts the area to 8.5 in X 11.72 in, and the device support up to 14 inches
> in height in Windows.
>
> I look in the hp5590 source but i can't see where this value is set, a guy from
> the forum say me that probably was the max_y_pixel but i don't know.

Hi, Manuel!
The logic here is simple - scanner reports its max supported
coordinates, and the backends checks whether the scan area set is
within those values. Based on the values I've seen from devices, max
area is indeed 8.5'' x 11.72''.

> From CLI the same.
> When I use the following command, that is Legal size (8.5 X 14)
> scanimage --source ADF --mode Gray --format=pdf -l 0 -t 0 -x 216 -y 356
> --resolution 150 > image.pdf
>
> It show me this error output:
>
> [hp5590] Top Y (0) + pixels Y (2102) exceedes max Y 1758
> scanimage: sane_start: Invalid argument

See above explanation - that's why you've got this error with current
backend. Basically, nothing would prevent from scanning something from
ADF wtih height even exceeding 14'' - the paper is just fed by
mechanical means over scanning head which isn't moving. Only if the
firmware has some hardcoded limits.

> I Have the debug log too.

Please, send it - would be helpful to check what's going on there.

-- 
 Ilia Sotnikov



More information about the sane-devel mailing list