On Mon, Sep 18, 2017 at 2:56 PM, Jeff Sadowski <[email protected]>
wrote:

>
>
> On Mon, Sep 18, 2017 at 2:15 PM, Jeff <[email protected]> wrote:
>
>> 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.
>>
>> Thank you, I understand both well I should have not trouble converting it.
>

Ahh, I see ignore the common options and put them in manually. clear way of
getting around the issue. ;-)

>
>
>> It is written in Perl, but PHP is not very different.
>>
>> Regards
>>
>> Jeff
>>
>>
>> --
>> 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]
>>
>
>
-- 
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