On 18/09/17 21:28, Jeff Sadowski wrote:
> The extremely hard part is coming up with a way to parse the stdout of
> "scanimage -h"
> Is there a good way to to this with regular expressions or something.

If you look at the source of gscan2pdf
(https://sourceforge.net/p/gscan2pdf/code/ci/master/tree/lib/Gscan2pdf/Scanner/Options.pm),
the _parse_scanimage_output() method does what you want.

It is written in Perl, but PHP is not very different.

Regards

Jeff

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
sane-devel mailing list: [email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to [email protected]

Reply via email to