Menu

Scan multiple pages from feeder

2015-05-10
2015-06-26
  • Philippe Raemy

    Philippe Raemy - 2015-05-10

    Hello!
    I'm new to NAPS2, and want to use it with an HPC309 MF printer equipped with a duplex feeder. While NAPS2 offers to scan from glass or feeder, simplex or duplex, I cannot manage to make it scan multiple pages from the feeder, it stops after one and the scanner ejects the rest of the stack.
    The scanner works just fine with the native HP software.
    Am I missing something?

     
  • Ben Olden-Cooligan

    Some scanners have issues when using the WIA driver. Try editing the profile you're using and choose TWAIN instead of WIA.

     
  • Philippe Raemy

    Philippe Raemy - 2015-05-10

    Actually, with the TWAIN driver, I have the choice between two sources (1) "HP Photosmart C209a TWAIN 1.0 (32-32)" and (2) "WIA-HP HP Photosmart C309a".
    With (1) it triggers the scan dialog of the native HP application (which is desperately slow), but the scanner takes multiple pages from the feeder. Moreover, the duplex option is 3 clicks away in this dialog.
    With (2) I get the same issue as with the WIA driver - but worse, it would prompt with a TWAIN settings dialog.
    In both cases the fact of having a dialog prompting defeats the whole point of using a command line utility for scanning.
    I have of course updated my drivers to the latest level (under windows 7 ultimate 64b).
    Any other suggestion?

     
  • Ben Olden-Cooligan

    Could you help me by doing the following? This will give me some idea of if the issue can be fixed.

    1. Download this
    2. Extract the zip
    3. Run NAPS2.Diagnostics.exe
    4. Copy and paste the results into this thread or send a mail
     
  • Philippe Raemy

    Philippe Raemy - 2015-05-11

    That's the results of NAPS2.Diagnostics:
    Begin Device Properties
    (RO)DEV-4098:Item Name=Root
    (RO)DEV-4099:Full Item Name=0000\Root
    (RO)DEV-4101:Item Flags=76
    DEV-2:Unique Device ID={6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0000
    (RO)DEV-3:Manufacturer=Hewlett-Packard
    (RO)DEV-4:Description=HP Photosmart C309a
    (RO)DEV-5:Type=65538
    (RO)DEV-6:Port=\.\Usbscan0
    (RO)DEV-7:Name=HP Photosmart C309a
    DEV-8:Server=local
    DEV-9:Remote Device ID=
    (RO)DEV-10:UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
    (RO)DEV-11:Hardware Configuration=0
    (RO)DEV-12:BaudRate=
    (RO)DEV-13:STI Generic Capabilities=48
    (RO)DEV-14:WIA Version=2.0
    (RO)DEV-15:Driver Version=12.0.0.133
    (RO)DEV-16:PnP ID String=\?\usb#vid_03f0&pid_7311&mi_00#9&3a52a9a4&0&0000#{6bdd1fc6-810f-11d0-bec7-08002be2092f}
    (RO)DEV-17:STI Driver Version=2
    (RO)DEV-3074:Horizontal Bed Size=8500
    (RO)DEV-3075:Vertical Bed Size=11690
    (RO)DEV-3079:Horizontal Bed Registration=0
    (RO)DEV-3080:Vertical Bed Registration=0
    (RO)DEV-4102:Access Rights=3
    (RO)DEV-3090:Horizontal Optical Resolution=4800
    (RO)DEV-3091:Vertical Optical Resolution=4800
    (RO)DEV-1026:Firmware Version=1.0.na
    (RO)DEV-3095:Max Scan Time=500000
    (RO)DEV-3104:Minimum Horizontal Sheet Feed Size=100
    (RO)DEV-3105:Minimum Vertical Sheet Feed Size=100
    (RO)DEV-3076:Horizontal Sheet Feed Size=8500
    (RO)DEV-3077:Vertical Sheet Feed Size=15000
    (RO)DEV-3078:Sheet Feeder Registration=1
    (RO)DEV-3086:Document Handling Capabilities=39
    DEV-3088:Document Handling Select=2
    (RO)DEV-3087:Document Handling Status=1
    (RO)DEV-3103:Show preview control=0
    DEV-3096:Pages=1
    End Device Properties

    Begin Item Properties
    (RO)IT-4098:Item Name=\Top
    (RO)IT-4099:Full Item Name=0000\Root\Top
    (RO)IT-4101:Item Flags=67
    IT-4120:Color Profile Name=sRGB Color Space Profile
    IT-6154:Brightness=0
    IT-6155:Contrast=0
    IT-71691:Private Highlight Level=0
    IT-71693:Private Midtone Level=0
    IT-71692:Private Shadow Level=0
    IT-71694:Private Gamma=2200
    IT-71698:Private Saturation=1000
    IT-71695:Private Hue X=0
    IT-71696:Private Hue Y=0
    IT-71697:Private Sharpen Level=3
    IT-6147:Horizontal Resolution=200
    IT-6148:Vertical Resolution=200
    (RO)IT-71686:Private Default Resolution=200
    (RO)IT-71687:Private Quality Resolution=300
    IT-6149:Horizontal Start Position=0
    IT-6150:Vertical Start Position=0
    IT-6151:Horizontal Extent=1700
    IT-6152:Vertical Extent=2338
    (RO)IT-4112:Pixels Per Line=1700
    (RO)IT-4113:Bytes Per Line=5100
    (RO)IT-4114:Number of Lines=2338
    (RO)IT-4116:Item Size=11923840
    (RO)IT-4118:Minimum Buffer Size=262144
    IT-6146:Current Intent=0
    IT-4103:Data Type=3
    (RO)IT-4104:Bits Per Pixel=24
    (RO)IT-4110:Bits Per Channel=8
    (RO)IT-4109:Channels Per Pixel=3
    (RO)IT-4111:Planar=0
    IT-6159:Threshold=55
    (RO)IT-4107:Compression=0
    IT-4108:Media Type=128
    IT-4106:Format={B96B3CAA-0728-11D3-9D7B-0000F81EF32E}
    (RO)IT-4105:Preferred Format={B96B3CAA-0728-11D3-9D7B-0000F81EF32E}
    (RO)IT-4123:Filename extension=bmp
    (RO)IT-4102:Access Rights=3
    (RO)IT-6153:Photometric Interpretation=0
    IT-71685:Private Source Depth=0
    IT-71688:Private Exposure Method=0
    IT-71721:Private Smoothing=1
    IT-71722:Private Color Enhanced=0
    IT-71684:Private TMA Method=0
    (RO)IT-71700:Private Defaults=System.ComObject
    (RO)IT-71701:71701=System.
    ComObject
    (RO)IT-71702:71702=System.ComObject
    (RO)IT-71703:71703=System.
    ComObject
    (RO)IT-71710:71710=System.ComObject
    (RO)IT-71711:71711=System.
    ComObject
    (RO)IT-71704:71704=System.ComObject
    (RO)IT-71705:71705=System.
    ComObject
    (RO)IT-71706:71706=System.ComObject
    (RO)IT-71707:71707=System.
    ComObject
    (RO)IT-71708:71708=System.ComObject
    (RO)IT-71709:71709=System.
    ComObject
    (RO)IT-71720:71720=0
    (RO)IT-71712:71712=System.ComObject
    (RO)IT-71713:71713=System.
    ComObject
    (RO)IT-71714:71714=System.ComObject
    (RO)IT-71715:71715=System.
    ComObject
    (RO)IT-71716:71716=System.ComObject
    (RO)IT-71717:71717=System.
    ComObject
    (RO)IT-71718:71718=System.ComObject
    (RO)IT-71719:Private Property=System.
    ComObject
    End Item Properties
    Child items: 0

     
  • Philippe Raemy

    Philippe Raemy - 2015-05-22

    Any news on this issue?

     
  • Philippe Raemy

    Philippe Raemy - 2015-05-31

    I just tried with 3.2.0.32053 and IT WORKS!!!
    Looks like you've found the trick!
    Thank you.

     
  • Philippe Raemy

    Philippe Raemy - 2015-06-02

    Actually it worked a few times for the duration of a windows session!!!
    However, with 3.2.1.27941 today it does not work anymore. Looks like I rejoiced too early.
    What has changed?

     
  • Ben Olden-Cooligan

    Nothing should have changed in 3.2.1 that would have affected that. Could you try downloading the version that worked for you before and see if that works for you again?

    Also, do you happen to know what version of NAPS2 you were using when you originally created this thread?

     
  • Philippe Raemy

    Philippe Raemy - 2015-06-03

    I'll test again tonight with 3.2.0.32053.
    The version I had when creating this thread was 3.1.9... the latest available at the time, i.e. on May 10th.

     
  • Philippe Raemy

    Philippe Raemy - 2015-06-04

    I tested with 3.2.0 and it still does not work. I'm still positive that I've seen it work a couple of times, for a two-pages simplex document and a 2-sheets duplex document, resulting in a 4 pages PDF file. That was with 3.2.0.32053, but I could not reproduce that today.
    I am an IT professional, and would be happy spend some time to test and debug under your advice, if that could help.

     

    Last edit: Philippe Raemy 2015-06-04
  • Ben Olden-Cooligan

    I would love to fix this issue, but honestly I'm not sure how to do it if you can't reproduce it working. There are a couple long-shot things I could try (and might send you for testing later anyway if you don't mind).

    However, what I'm working on right now is TWAIN with predefined settings (i.e. no popup). If I can get that to work, hopefully it should suit your needs.

     
  • Ben Olden-Cooligan

    Okay, I think I have TWAIN with predefined settings working. Could you download this test version, create a profile with TWAIN and predefined settings selected, and see if that works for you?

    Link

    If it does work, I'd appreciate it if you could play around with the different profile settings as well and see if you can get it to break. In particular, see if duplex works for you. I'm going to do some more testing myself before publishing this version.

     
  • Philippe Raemy

    Philippe Raemy - 2015-06-05

    Hello!
    It looks like an import step forward. Using the GUI and the TWAIN driver, I could scan all right duplex and simplex documents from the feeder - I've sent by email the contents of my profiles.xml file.
    However the console utility produces an error when using the twain profiles.
    And believe it or not, I could scan also multiple pages using WIA and the command line utility, from feeder, but simplex only, duplex failed like before.
    With version 3.2.0, that I did not uninstall, the feeder scan fails like before. So now we have a version that works and one that doesn't, using the WIA driver and the document feeder.

    Please tell me which other test I could do to help finding the difference.

     

    Last edit: Philippe Raemy 2015-06-05
  • Ben Olden-Cooligan

    Could you try this version with WIA and duplex and see if it makes a difference?

    Link

    Also, could you send me your profiles.xml for the installed version (3.2.0) so I can compare? (You can find it in %APPDATA%/NAPS2)

    I haven't looked at the TWAIN command-line issue yet.

     

    Last edit: Ben Olden-Cooligan 2015-06-05
  • Ben Olden-Cooligan

    Please also try this version. It should fix the TWAIN command-line issue. (You don't need to try this one with WIA, only TWAIN.)

    Link

     
  • Philippe Raemy

    Philippe Raemy - 2015-06-07

    I've used a script to do the following test protocol:
    1. scan with WIA from feeder
    2. scan with WIA from duplex
    3. scan with twain from feeder
    4. scan with twain from duplex
    ... and repeating this for all of the three experimental versions that you gave me.
    That makes 12 scans as a total, using a two sheets recto/verso color document.
    These are the results I got:

    Version WIA Feeder WIA Duplex TWAIN Feeder TWAIN Duplex
    3.3.0 Successful Successful "An error occurred with the scanning driver. No scanned pages to export." "An error occurred with the scanning driver. No scanned pages to export"
    3.3.0 rev2 Successful Successful "An error occurred with the scanning driver. No scanned pages to export" "An error occurred with the scanning driver. No scanned pages to export"
    3.3.0 rev 3 Successful Successful Successful Successful

    As you see this is not very conclusive to identify a pattern of errors. I'm sorry of that.
    So I suspected that the native HP software could alter the state of the driver or the scanner. This software uses the twain driver.
    I then rebooted the pc and the printer and ran the battery of tests with the same results.
    Then scanned two docs with the native soft again and reran the battery of tests with the same results.

    profiles.xml used with version 3.2.0:

    <?xml version="1.0"?>
    <ArrayOfExtendedScanSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <ExtendedScanSettings>
    <Device>
    <ID>{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0000</ID>
    <Name>HP Photosmart C309a</Name>
    </Device>
    <DriverName>wia</DriverName>
    <DisplayName>Duplex</DisplayName>
    <IconID>0</IconID>
    <MaxQuality>true</MaxQuality>
    <IsDefault>true</IsDefault>
    <Version>1</Version>
    <UseNativeUI>false</UseNativeUI>
    <AfterScanScale>OneToOne</AfterScanScale>
    <Brightness>0</Brightness>
    <Contrast>1000</Contrast>
    <BitDepth>C24Bit</BitDepth>
    <PageAlign>Left</PageAlign>
    <PageSize>A4</PageSize>
    <Resolution>Dpi300</Resolution>
    <PaperSource>Duplex</PaperSource>
    </ExtendedScanSettings>
    <ExtendedScanSettings>
    <Device>
    <ID>{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0000</ID>
    <Name>HP Photosmart C309a</Name>
    </Device>
    <DriverName>wia</DriverName>
    <DisplayName>Simplex</DisplayName>
    <IconID>0</IconID>
    <MaxQuality>false</MaxQuality>
    <IsDefault>false</IsDefault>
    <Version>1</Version>
    <UseNativeUI>false</UseNativeUI>
    <AfterScanScale>OneToOne</AfterScanScale>
    <Brightness>0</Brightness>
    <Contrast>1000</Contrast>
    <BitDepth>C24Bit</BitDepth>
    <PageAlign>Left</PageAlign>
    <PageSize>A4</PageSize>
    <Resolution>Dpi300</Resolution>
    <PaperSource>Feeder</PaperSource>
    </ExtendedScanSettings>
    <ExtendedScanSettings>
    <Device>
    <ID>{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0000</ID>
    <Name>HP Photosmart C309a</Name>
    </Device>
    <DriverName>wia</DriverName>
    <DisplayName>Glass</DisplayName>
    <IconID>0</IconID>
    <MaxQuality>true</MaxQuality>
    <IsDefault>false</IsDefault>
    <Version>1</Version>
    <UseNativeUI>false</UseNativeUI>
    <AfterScanScale>OneToOne</AfterScanScale>
    <Brightness>0</Brightness>
    <Contrast>1000</Contrast>
    <BitDepth>C24Bit</BitDepth>
    <PageAlign>Left</PageAlign>
    <PageSize>A4</PageSize>
    <Resolution>Dpi300</Resolution>
    <PaperSource>Glass</PaperSource>
    </ExtendedScanSettings>
    </ArrayOfExtendedScanSettings>

    profiles.xml used with experimental versions 3.3.*

    <?xml version="1.0"?>
    <ArrayOfExtendedScanSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <ExtendedScanSettings>
    <Device>
    <ID>HP Photosmart C309a TWAIN</ID>
    <Name>HP Photosmart C309a TWAIN</Name>
    </Device>
    <DriverName>twain</DriverName>
    <DisplayName>SimplexTwain</DisplayName>
    <IconID>0</IconID>
    <MaxQuality>false</MaxQuality>
    <IsDefault>false</IsDefault>
    <Version>2</Version>
    <UseNativeUI>false</UseNativeUI>
    <AfterScanScale>OneToOne</AfterScanScale>
    <Brightness>0</Brightness>
    <Contrast>0</Contrast>
    <BitDepth>C24Bit</BitDepth>
    <PageAlign>Left</PageAlign>
    <PageSize>A4</PageSize>
    <Resolution>Dpi300</Resolution>
    <PaperSource>Feeder</PaperSource>
    </ExtendedScanSettings>
    <ExtendedScanSettings>
    <Device>
    <ID>HP Photosmart C309a TWAIN</ID>
    <Name>HP Photosmart C309a TWAIN</Name>
    </Device>
    <DriverName>twain</DriverName>
    <DisplayName>DuplexTwain</DisplayName>
    <IconID>0</IconID>
    <MaxQuality>false</MaxQuality>
    <IsDefault>false</IsDefault>
    <Version>2</Version>
    <UseNativeUI>false</UseNativeUI>
    <AfterScanScale>OneToOne</AfterScanScale>
    <Brightness>0</Brightness>
    <Contrast>0</Contrast>
    <BitDepth>C24Bit</BitDepth>
    <PageAlign>Left</PageAlign>
    <PageSize>A4</PageSize>
    <Resolution>Dpi300</Resolution>
    <PaperSource>Duplex</PaperSource>
    </ExtendedScanSettings>
    <ExtendedScanSettings>
    <Device>
    <ID>{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0000</ID>
    <Name>HP Photosmart C309a</Name>
    </Device>
    <DriverName>wia</DriverName>
    <DisplayName>SimplexWIA</DisplayName>
    <IconID>0</IconID>
    <MaxQuality>false</MaxQuality>
    <IsDefault>false</IsDefault>
    <Version>2</Version>
    <UseNativeUI>false</UseNativeUI>
    <AfterScanScale>OneToOne</AfterScanScale>
    <Brightness>0</Brightness>
    <Contrast>0</Contrast>
    <BitDepth>C24Bit</BitDepth>
    <PageAlign>Left</PageAlign>
    <PageSize>A4</PageSize>
    <Resolution>Dpi300</Resolution>
    <PaperSource>Feeder</PaperSource>
    </ExtendedScanSettings>
    <ExtendedScanSettings>
    <Device>
    <ID>{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0000</ID>
    <Name>HP Photosmart C309a</Name>
    </Device>
    <DriverName>wia</DriverName>
    <DisplayName>DuplexWIA</DisplayName>
    <IconID>0</IconID>
    <MaxQuality>false</MaxQuality>
    <IsDefault>false</IsDefault>
    <Version>2</Version>
    <UseNativeUI>false</UseNativeUI>
    <AfterScanScale>OneToOne</AfterScanScale>
    <Brightness>0</Brightness>
    <Contrast>0</Contrast>
    <BitDepth>C24Bit</BitDepth>
    <PageAlign>Left</PageAlign>
    <PageSize>A4</PageSize>
    <Resolution>Dpi300</Resolution>
    <PaperSource>Duplex</PaperSource>
    </ExtendedScanSettings>
    </ArrayOfExtendedScanSettings>

     
  • Ben Olden-Cooligan

    Thanks for all that testing. It's odd how inconsistent WIA is.

    I assume that the installed 3.2.0 version still does not work. If that's the case, could you do one last test:
    In the installed 3.2.0 version, try resetting the Contrast to 0 and see if that makes a difference.

    In either case, I'll probably polish up the last revision and publish a new version soon. At least TWAIN should work with that.

     
  • Philippe Raemy

    Philippe Raemy - 2015-06-08

    Actually even the 3.2.0 worked yesterday evening.
    However I'll run some test with contrast adjustment.
    Is there a way to enable a full logging of the operation? I don't mind a slight performance impact if that can help identifying the issue...

     
  • Ben Olden-Cooligan

    In that case you don't need to bother with checking contrast, I only asked because it seemed the only thing different between it working or not working.

    Unfortunately more logging in NAPS2 won't help, the issue here is "internal" to WIA; all I can do is change the parameters and either it works or it doesn't.

     
  • Ben Olden-Cooligan

    The latest published version of NAPS2 (3.3.0) incorporates the changes from rev3. I hope that works for your needs.

    Thanks again for helping with this.

     
  • John Denos

    John Denos - 2015-06-25

    I am having a similar issue with the latest version 3.3.3.26560

    The scanner is reading all 4 pages of my document, however it is only importing the first page. Is this a settings issue? I have adjusted and played with WAI/TWAIN to no avail

    John

     
  • Ben Olden-Cooligan

    Hi John,

    I created a new thread to respond here.

     

Log in to post a comment.