cordova-plugin-document-scanner icon indicating copy to clipboard operation
cordova-plugin-document-scanner copied to clipboard

Scan multiple document

Open js12690 opened this issue 6 years ago • 7 comments

Hello, i am phonegap developer and using this plugin to scan document. thanks for creating awesome plugin. it is very useful in our project but here we have some additional requirement to scan multiple document.

To achieve our goal currently we are scanning one document at a time and than it comes back to success event after that we are calling function of scan.scanDoc to scan document again. but we need multiple image scan at once and then pass all scanned images in success function.

can it possible with current plugin? if yes then how can we achieve this?

Thanks in advance

js12690 avatar Aug 31 '18 14:08 js12690

Unfortunately at the present moment the only way to perform multiple scans is to call the scan plugin again on the success callback. Anyhow this is a good enhancement to add to the future work and this is exactly what I am going to do. Thank you for raising this issue. Have a nice day!

Cheers, Chris Neutrinos

ChrisTomAlx avatar Sep 04 '18 17:09 ChrisTomAlx

@ChrisTomAlx Thank you so much for quick response. We are eagerly waiting for this feature in this awesome plugin.

js12690 avatar Sep 06 '18 08:09 js12690

Hi! Are there any news since the last two years? Multiple pages would be really awesome!

bastifix avatar Apr 22 '20 21:04 bastifix

Hey On bit of a tight schedule currently. but if a pr is raised I will be able to look at its viability and merge it..

Cheers and have a nice day :) Chris Neutrinos

ChrisTomAlx avatar Apr 23 '20 05:04 ChrisTomAlx

Ok, great! Can I do something to push this further?

bastifix avatar Apr 23 '20 08:04 bastifix

Hey @bastifix

Android

  • If you are interested in rasing a pr, you can look at the scanlibrary. Maybe fork it if required.
  • If you fork it and create a release via github you can then access the built library here.
  • You can then fork the document scanner repo and change the build.gradle file in the plugin to match your github build.
  • You can then either constantly make releases or use the master-snapshot built to test the library.

iOS

  • Refer to this comment
  • Ver 3.x.x found in the ver/3.x.x branch of this repo actually implements a new ios library which had plans for batch scanning. You can find that library here

That should get you started. As for the implementation. I haven't gotten to ideating it yet so I am all ears if there are any ideas or if its a pr we can then work to improve on top of that. Keep in mind any changes to one platform library should also keep the other platforms library in view. So that if necessary we can expand functionality for both platforms eventually.

I should probably create a How to Contribute doc. Will get on that as soon as I am able to.

Cheers :) Chris Neutrinos

ChrisTomAlx avatar Apr 23 '20 08:04 ChrisTomAlx

Hi! Multiple pages would be really awesome! can you tell us when we can expect multi scan functionality?

stepupithubapp avatar Oct 11 '20 06:10 stepupithubapp