Page 2 of 2
Re: Scanner applet scan multiple pages!!!
PostPosted:Fri May 06, 2011 4:03 pm
by lucas.santana
The last version from SVN.
Re: Scanner applet scan multiple pages!!!
PostPosted:Sat May 07, 2011 4:04 pm
by pavila
I have merge the changes but it does not works in my test scanner (ScanJet 2100C) It does not have page feeder so can't make make it to scan multiple pages unless I scan them individually. In which scanner have you make test and how is supposed to work? Indeed with your changes actually I can't scan any page because the test:
Code: Select allmetadata.getLastState() == 7 && metadata.getState() == 5
Is never resolved to true. What mean these states?
Re: Scanner applet scan multiple pages!!!
PostPosted:Mon May 16, 2011 5:08 pm
by lucas.santana
Hello pavila!
I have an update to send, now is possible scan with both formats, in PDF is possible scan a lot of pages, but in others formats one page!
I am using a HP N7320 Scanner, this scanner is appropiated to alot of scans!
One observation: You need to use the basic driver to scan more than one page in PDF format, please, don't use additional software to use in your scanner, because OpenKM scanner applet will don't work correctly in PDF format!
The metadata.getLastState is just to verify the page buffering.
Re: Scanner applet scan multiple pages!!!
PostPosted:Thu May 19, 2011 1:40 pm
by pavila
Is difficult for me to work without source code patch. I have uploaded a new version of scanner applet in trunk, please send me patches against this code base to be included. I have added some part of your contributed code but still I'm not able to use with my scanner in Linux.
The problem seems to be that I only have the image when the ScannerIOMetadata.ACQUIRED event is thrown, and in your modification only make the upload to OpenKM in the ScannerIOMetadata.STATECHANGE event, having metadata.getLastState() == 7 && metadata.getState() == 5 (which I have no idea what means the 7 and 5 states).
Re: Scanner applet scan multiple pages!!!
PostPosted:Thu May 19, 2011 5:35 pm
by lucas.santana
Hello Pavila!
These states mean scanner ready, every time the scanner gets an image it changes state. Both conditions 7 and 5 mean scanner has obtained every image.
I tested with two scanners with feeder and work perfectly, but I not tested with linux yet! Please, make a test with Windows and a scanner with feeder. Anyway I will make some tests with linux and report for you the results.
Re: Scanner applet scan multiple pages!!!
PostPosted:Fri May 20, 2011 7:28 am
by pavila
That should be the error: my scanner has no feeder. The scanner applet should work with feeder and without it. Please, can you try the last code from trunk and verify it works with an scanner with feeder? I have included (and improved) your contributed code.
Re: Scanner applet scan multiple pages!!!
PostPosted:Wed Jun 01, 2011 2:22 pm
by lucas.santana
Hello Pavila!
Sorry for delay in answering you, i am very busy with my job and my university.
Your code work fine with scanner feeder in linux, thanks for your improvements!
I think that you can release a new version of OpenKM with these modifications immediately.
OpenKM is a great project, congratulations to all developers and contributors!
Re: Scanner applet scan multiple pages!!!
PostPosted:Fri Jul 01, 2011 5:39 pm
by apons
Where would i need to place these files you posted in the zip so the multiple page scanning works?
THank you,
Adolfo Pons
Re: Scanner applet scan multiple pages!!!
PostPosted:Mon Jul 04, 2011 8:42 pm
by pavila
This is the last version of the scanner applet. You need to place it into OpenKM.war archive. It can be opened with WinRAR or 7-Zip (Windows), among other like File-Roller (Linux).
Re: Scanner applet scan multiple pages!!!
PostPosted:Mon Sep 24, 2012 5:42 pm
by donnap
Hello,
First of all I want to congratulate and thank to all the developers and contributors who created this wonderful software.
I have a question regarding the code for the scanner applet: is the code (scanner project) at SVN (link from POM:
https://openkm.svn.sourceforge.net/svnroot/openkm/trunk) up-to date?
I am asking this because I extracted the code (5.1), built the jar, placed it in the OpenKM.war, started the server, but when the applet initializes it does not pop-up the window to select a scan source (I have multiple scanners installed). Running OpenKM (also 5.1) with the original OpenKM.war file, after the applet initializes the pop-up is displayed.
Am I missing something?
Thank you and best regards,
Donna
Re: Scanner applet scan multiple pages!!!
PostPosted:Sat Oct 13, 2012 10:13 am
by pavila
Scanner applet source code should be in the OpenKM 5.1 branch, not in trunk.