<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 18, 2017 at 2:15 PM, Jeff <span dir="ltr"><<a href="mailto:jffry@posteo.net" target="_blank">jffry@posteo.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 18/09/17 21:28, Jeff Sadowski wrote:<br>
> The extremely hard part is coming up with a way to parse the stdout of<br>
> "scanimage -h"<br>
> Is there a good way to to this with regular expressions or something.<br>
<br>
</span>If you look at the source of gscan2pdf<br>
(<a href="https://sourceforge.net/p/gscan2pdf/code/ci/master/tree/lib/Gscan2pdf/Scanner/Options.pm" rel="noreferrer" target="_blank">https://sourceforge.net/p/<wbr>gscan2pdf/code/ci/master/tree/<wbr>lib/Gscan2pdf/Scanner/Options.<wbr>pm</a>),<br>
the _parse_scanimage_output() method does what you want.<br>
<br>
</blockquote><div>Thank you, I understand both well I should have not trouble converting it.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It is written in Perl, but PHP is not very different.<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888"><br>
Jeff<br>
<br>
</font></span><br>--<br>
sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.<wbr>debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel" rel="noreferrer" target="_blank">http://lists.alioth.debian.<wbr>org/cgi-bin/mailman/listinfo/<wbr>sane-devel</a><br>
Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
             to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.<wbr>alioth.debian.org</a><br></blockquote></div><br></div></div>