[sane-devel] gscan2pdf v1.2.4 released

2014-04-03 Thread Jeffrey Ratcliffe
gscan2pdf - A GUI to produce a multipage PDF or DjVu from a scan.

http://gscan2pdf.sourceforge.net/

Only two clicks are required to scan several pages and then save all or
a selection as a PDF or DjVu file, including metadata if required.

gscan2pdf can control regular or sheet-fed (ADF) scanners with SANE via
libsane-perl, scanimage or scanadf, and can scan multiple pages at
once. It presents a thumbnail view of scanned pages, and permits simple
operations such as cropping, rotating and deleting pages.

OCR can be used to recognise text in the scans, and the output
embedded in the PDF or DjVu.

PDF conversion is done by PDF::API2.

The resulting document may be saved as a PDF, DjVu, multipage TIFF file,
or single page image file.


Changelog for 1.2.4:

* Tie PageRange widgets together
  Closes bug #165 "all or selected? a surprise that can bite like snake"
again
* Fix parsing the units of the resolution of imported images.
* Fix infinite loop scanning page 1 when 5+ exist.
* Parse negative progress percentages from scanimage.
* Fix scan dialog if no devices found.


-- next part --
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: 
<http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20140403/d0cf9b92/attachment.sig>


[sane-devel] HP Scanjet 3670 bad colors

2014-04-03 Thread Stef
On 01/04/2014 05:42, Octavio Alvarez wrote:
> On 03/31/2014 08:37 PM, Stef wrote:
>>  thanks for all the data. It'll take me a couple of days to analyze
>> them and compare with the results of my hp3670.
> If you also have one and works then we may have different versions of
> the 3670. Mine has regulatory model GRLYB-0306.
>
 Hello,

 I have reproduced the bug with my scanner. The calibration needs to 
be tuned or reworked. I'll have a fixed version in a few days.

Regards,
 Stef



[sane-devel] Header files required to build backends

2014-04-03 Thread Stef
On 03/04/2014 14:27, m. allan noah wrote:
> On Thu, Apr 3, 2014 at 8:10 AM, John Paul Adrian Glaubitz
>  wrote:
>> On 04/03/2014 01:59 PM, John Paul Adrian Glaubitz wrote:
>>> On 04/03/2014 01:23 PM, m. allan noah wrote:
 Which header files do they need?
>>>
>>> Excerpt from the source code [1]:
>>
>> Ok, I figured out that sane-backends has these additional headers
>> in EXTRA_DIST in include/Makefile.am.
>>
>> Does this mean that sane-backends is not designed to allow backends
>> to be built externally? Thus, if I want to build the Canon drivers,
>> I will have to have the full sources of sane-backends at hand?
>>
> That is exactly what it means. Those interfaces are not stable and not
> considered part of the 'interface' of sane. In my opinion, backends
> that use them but include closed source components are skirting the
> edges of their legal rights, by denying you yours.
>
> allan
>
 Hello,

 I second that. There is a different copyright notice for the public 
API and for the private internal includes.

Regards,
 Stef



[sane-devel] Canon MX430 / MX510 / MX925 - does not recover when ADF out of paper

2014-04-03 Thread Rolf Bensch
Hi All,

It seems that ADF out of paper issue is fixed now.

Please test attached final patch, which is based on latest git sources.

Please confirm that this patch fixes ADF out of paper issue for your
particular scanner.

I'll commit this patch and some document updates after your confirmation.

Many thanks for your help.

Cheers,
Rolf



Am 02.04.2014 20:54, schrieb Matthias Peter Walther:
> Hello Rolf,
> 
> here the requested logfile.
> 
> Bye
> Matthias
> 
> On 26.03.2014 17:22, Rolf Bensch wrote:
>> Hi Matthias,
>>
>> I prepared a patch for the "stopped the 2nd paper by hand" issue. The
>> patch is based on patch4.
>>
>> Please revert this patch: pixma_common.c.patch4. With this patch my
>> system has too fast timeouts, and without this patch the timeouts take 1
>> sec. Please try to fix this by yourself. On the other hand there are no
>> timeouts when everything is working as expected.
>>
>> Cheers,
>> Rolf
>>
>>
>> Am 23.03.2014 14:54, schrieb Matthias Peter Walther:
>>> Hello Rolf,
>>>
>>> I created three more logs.
>>>
>>> And the timeouts are not fixed. In fact it's gotten even worse,
>>> scanimage is captured in an (infinite(?)) loop of timeouts of which each
>>> loop takes several minuites. Watch log "3rd_try".
>>>
>>> Bye
>>> Matthias
>>>
>>> On 21.03.2014 18:21, Rolf Bensch wrote:
 Hi Matthias,

 I need a new log file for this issue:

>>> And in the debug level 11 Iog I stopped the 2nd paper by hand.
>>> Scanner and sane aborts. But after removing the paper and pressing
>>> ok on the device, nothing happens anymore.
 and the 2nd patch is for this issue:

>>> By the way. The timeouts in the sane logs are still rediculous.
>>> When it counts down, between each line it waits up the 40 seconds
>>> and not the amount of seconds it says in the log.
 and please test normal ADF scanning again.

 Cheers,
 Rolf


 Am 21.03.2014 00:16, schrieb Matthias Peter Walther:
> Hello,
>
> I'm not sure if I did this right. I installed the two patches shipped
> with your last email and used this command:
>
> $ export SANE_DEBUG_PIXMA=11
> $ scanimage -x 100 -y 100 > test.png 2>
> Scanimage_Debug_11_patch1+2+3new+4+Pressed_cancel_after_device_started.txt
>
> After the scanner started, I pressed cancel on the device. Is this what
> you need?
>
> Bye
> Matthias
>
>
> Am 20.03.2014 18:05, schrieb Rolf Bensch:
>> Hi Matthias,
>>
>> Please don't mix different testings in one log file and at the same
>> time. Please keep them in mind and let us go step by step.
>>
>> I assume that "normal" ADF scanning works with new patch 3.
>>
>> Am 19.03.2014 19:46, schrieb Matthias Peter Walther:
>>> Standard debug level 4 scan, the last 1 mm is still missing. As this
>>> seems to be firmware related, I think sane won't be able to change this.
>>> The linux binary has the same problem. And I tested it in windows with
>>> IrfanView. The last mm is still missing under windows, too. I think this
>>> is a firmware issue?
>>>
>> I guess the ADF hardware needs the last 1mm for the paper detector.
>>
>>> Maybe you just set the maximum height of an adf page to that last line
>>> it scans. That is 870 pixels @75 dpi.
>>>
>> I won't do so. What's when you want to scan a 14" sheet or A5 format?
>> Please set the used paper size in the frontend. Then you can also crop
>> left and right ADF frame.
>>
>>> And in the debug level 11 Iog I stopped the 2nd paper by hand. Scanner
>>> and sane aborts. But after removing the paper and pressing ok on the
>>> device, nothing happens anymore.
>>>
>> I see this error in the log file: "cancelled by hardware". The problem
>> is that the scan process has not been closed and the scanner cannot be
>> initialised for a new scan session because the previous is still active
>> in the scanner.
>>
>> To fix this I need the exact position in the code where "cancelled by
>> hardware" is detected. Please create a new log file with usb messages
>> with attached patch "pixma_mp150.c.patch4".
>>
>> And please scan a small area @ 75 dpi, not a whole page. This reduces
>> log file size.
>>
>>> The same bug comes, if you interrupt the scan with ctrl + C (scanimage).
>>> The printer continues pulling pages, but does not recover after it has
>>> finished. That works correctly with the binary. If I recover the scanner
>>> with the binary driver, that requires up to three attempts. During the
>>> first and often the second, it searches the scanner for 2 minuites and
>>> aborts then. After that the second failure the scanner works prefectly
>>> again. Maybe it's just a timeout in the devices firmware?
>>>
>> I assume that this is the same problem as above.
>>
>>> By the way. The timeouts in th

[sane-devel] Canon Image Formula dR 9050c

2014-04-03 Thread Gjermund Gusland Thorsen
What is the problem with waking from sleep for these scanners?
Where to start looking to fix this problem?



[sane-devel] Canon P-215 USB modeswitching

2014-04-03 Thread John Paul Adrian Glaubitz
Hi Allan!

On 04/03/2014 03:03 AM, m. allan noah wrote:
> I worked on the backend for this scanner remotely, but I've never
> actually touched one. I had no idea it did this modeswitching.

Short update:

After unsuccessfully trying several hours to get the proprietary Canon
backend compile with SANE, I did some more tests with the backend you
wrote and it turns out that I just had to flip the switch on the
backside of the scanner labeled "Auto Start" (see [1], p. 13).

Setting that switch to "Off" will turn the scanner immediately into
scan mode, changing its USB device ID to 0x1646 and making it work like
a charm with your backend.

I could scan both simplex and duplex, b/w and color and use all possible
resolutions, very happy with the scanner now :).

It should probably added to the manpage of the canon_dr backend that
this switch needs to be turned off.

Cheers,

Adrian

 > [1] http://s3.amazonaws.com/szmanuals/57470558254d703046f077c1811c527e

-- 
  .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



[sane-devel] Header files required to build backends

2014-04-03 Thread John Paul Adrian Glaubitz
On 04/03/2014 01:59 PM, John Paul Adrian Glaubitz wrote:
> On 04/03/2014 01:23 PM, m. allan noah wrote:
>> Which header files do they need?
>
> Excerpt from the source code [1]:

Ok, I figured out that sane-backends has these additional headers
in EXTRA_DIST in include/Makefile.am.

Does this mean that sane-backends is not designed to allow backends
to be built externally? Thus, if I want to build the Canon drivers,
I will have to have the full sources of sane-backends at hand?

Adrian

-- 
  .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



[sane-devel] Header files required to build backends

2014-04-03 Thread John Paul Adrian Glaubitz
On 04/03/2014 01:23 PM, m. allan noah wrote:
> Which header files do they need?

Excerpt from the source code [1]:

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include "sane/sane.h"
#include "sane/sanei.h"
#include "sane/sanei_net.h"
#include "sane/sanei_usb.h"
#include "sane/sanei_wire.h"
#include "sane/sanei_codec_bin.h"
#define BACKEND_NAME canondr
#define DEBUG_DECLARE_ONLY
#include "sane/sanei_backend.h"
#include "sane/sanei_config.h"
#include "Canon_DR.h"

Cheers,

Adrian

 > [1] http://paste.debian.net/91404/

-- 
  .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



[sane-devel] Header files required to build backends

2014-04-03 Thread John Paul Adrian Glaubitz
Hello!

While trying to get the Canon P-215 document scanner work with SANE,
I stumbled across a driver package directly offered by Canon [1].

This driver packages contains two 32 bit packages for both .rpm-
and .deb-based systems, no 64 bit packages, but at least a source
tarball with a binary blob and some C code.

Since my host system is running a 64 bit unstable, I thought I'd
try rebuilding the package for 64 bit. While doing that, I found
that the libsane-dev package in Debian currently contains solely
two header files, namely "sane.h" and "saneopts.h" while the SANE
upstream sources contain many more headers files from which the
Canon driver also needs several of.

Can anyone agree that the libsane-dev package in Debian should
ship all header files such that external backends can be developed?

If yes, I'd help Mark Buda, the current maintainer of the package
in Debian, to get a fixed version of the package into unstable.

Cheers,

Adrian

 > 
http://www.usa.canon.com/cusa/office/products/hardware/scanners/high_speed_document_scanners/imageformula_p_215_scan_tini_personal_document_scanner#DriversAndSoftware

-- 
  .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



[sane-devel] Canon P-215 USB modeswitching

2014-04-03 Thread John Paul Adrian Glaubitz
Hi Allan!

On 04/03/2014 03:03 AM, m. allan noah wrote:
> I worked on the backend for this scanner remotely, but I've never
> actually touched one. I had no idea it did this modeswitching.

Yes, I saw you were the author of the backend, so I was hoping you'd
be chiming in to reply :).

I still have this particular scanner here and there is even a driver
supplied by Canon in source which includes a binary blob, however,
so I'm not sure whether you can find the proper control sequence in
the sources. I have already skimmed through the source code and found
nothing so far.

Do you have any idea what we could do to find the proper command to
set the scanner into scanner mode? Would a USB dump on Windows help?

Adrian

-- 
  .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



[sane-devel] Header files required to build backends

2014-04-03 Thread m. allan noah
On Thu, Apr 3, 2014 at 8:10 AM, John Paul Adrian Glaubitz
 wrote:
> On 04/03/2014 01:59 PM, John Paul Adrian Glaubitz wrote:
>>
>> On 04/03/2014 01:23 PM, m. allan noah wrote:
>>>
>>> Which header files do they need?
>>
>>
>> Excerpt from the source code [1]:
>
>
> Ok, I figured out that sane-backends has these additional headers
> in EXTRA_DIST in include/Makefile.am.
>
> Does this mean that sane-backends is not designed to allow backends
> to be built externally? Thus, if I want to build the Canon drivers,
> I will have to have the full sources of sane-backends at hand?
>

That is exactly what it means. Those interfaces are not stable and not
considered part of the 'interface' of sane. In my opinion, backends
that use them but include closed source components are skirting the
edges of their legal rights, by denying you yours.

allan

-- 
"The truth is an offense, but not a sin"



[sane-devel] Canon Image Formula dR 9050c

2014-04-03 Thread m. allan noah
I had a long email thread with Philip Gwyn who did the initial
development work. He was unable to make the machine wake up from
software, but did not continue to try, because adding paper to the
input hopper will wake it up. If you wanted to debug further, we could
try to get logs of the scanner when it demonstrates this behavior,
using sane-backends git development version. There have been some
updates to the canon_dr backend recently that might help.

allan

On Thu, Apr 3, 2014 at 7:30 AM, Gjermund Gusland Thorsen
 wrote:
> What is the problem with waking from sleep for these scanners?
> Where to start looking to fix this problem?
>
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>  to sane-devel-request at lists.alioth.debian.org



-- 
"The truth is an offense, but not a sin"



[sane-devel] Header files required to build backends

2014-04-03 Thread m. allan noah
Which header files do they need?

allan

On Thu, Apr 3, 2014 at 6:14 AM, John Paul Adrian Glaubitz
 wrote:
> Hello!
>
> While trying to get the Canon P-215 document scanner work with SANE,
> I stumbled across a driver package directly offered by Canon [1].
>
> This driver packages contains two 32 bit packages for both .rpm-
> and .deb-based systems, no 64 bit packages, but at least a source
> tarball with a binary blob and some C code.
>
> Since my host system is running a 64 bit unstable, I thought I'd
> try rebuilding the package for 64 bit. While doing that, I found
> that the libsane-dev package in Debian currently contains solely
> two header files, namely "sane.h" and "saneopts.h" while the SANE
> upstream sources contain many more headers files from which the
> Canon driver also needs several of.
>
> Can anyone agree that the libsane-dev package in Debian should
> ship all header files such that external backends can be developed?
>
> If yes, I'd help Mark Buda, the current maintainer of the package
> in Debian, to get a fixed version of the package into unstable.
>
> Cheers,
>
> Adrian
>
>>
>> http://www.usa.canon.com/cusa/office/products/hardware/scanners/high_speed_document_scanners/imageformula_p_215_scan_tini_personal_document_scanner#DriversAndSoftware
>
> --
>  .''`.  John Paul Adrian Glaubitz
> : :' :  Debian Developer - glaubitz at debian.org
> `. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
>   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
>
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-request at lists.alioth.debian.org



-- 
"The truth is an offense, but not a sin"