Pre-receive Hook: Wait for file - software duplex #457
Replies: 7 comments 3 replies
-
Hello! Comments below.
Thank you :)
I'd check with the software of the scanner. I could imagine that is has some pseudo duplex options (Scan, rotate the pages, scan again, and the sofware does the splining.)
Correct.
The only obvious issue I see is that the pre and post consumption scripts cannot cancel the consumption. Paperless does not evaluate the exit code of these scripts and continues anyway. However, this is an easy fix. Apart from that, this might be possible, but won't be very elegant. You will also get lots of errors in the logs, because you'll have to cancel consumption for either the front or back documents regularly.
|
Beta Was this translation helpful? Give feedback.
-
Maybe try NAPS2 ? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your comments. I am going for a completely headless design (well, at least for the scanning part), so using the scanner software is not really an option. Imho, this whole thing works only if digitizing the documents is as easy and fast as possible - otherwise I just don't do it ;) |
Beta Was this translation helpful? Give feedback.
-
You might want to look at
|
Beta Was this translation helpful? Give feedback.
-
I created a headless service for providing software based duplex scanning: https://github.com/frzb/softduplex It was created to overcome the lack of duplex scanning by our document scanner similar to the scenario that @raumneun described here. |
Beta Was this translation helpful? Give feedback.
-
Hello, on a similar Issue I have created the script below:
I suspect all Brother scanners (ADS*) do it that way. Thus, it could be good to link this script in the docs... Maybe it is of help for anyone.
|
Beta Was this translation helpful? Give feedback.
-
Hello, thanks for your feedback. Indeed, there is that risk in my approach. I run the script every 10 minutes - so the risk is very low. Thanks, I will try that. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
this is more a question than an issue - maybe a feature request. In any case, thank you for the great work with paperless-ng!
I was using a self-cooked minimalistic paperless web-app which used folders (because it was easier to implement) successfully for quite some time now but decided to switch to paperless-ng because it is... well.. better in just about every way :)
With one exception to my usual workflow:
Our scanner has an ADF, but unfortunately scans only single-sided. So in my web-app, I used a python script that combines two PDFs from the front (odd page numbers) and backs (even page numbers) by interleaving the pages.
Obviously, this would not work with paperless-ng out of the box as the consumer would consume the first pdf before the second arrived.
So I was wondering if it was possible to write a pre-consumption script that if a file appears in the consumption directory, that contains the word "front", it waits in an infinite loop (with a timeout of some sort) until the second file arrives, then combines these two and exits afterwards, such that the consumption carries on as usual.
To prevent the second file to be consumed from a different worker, the pre-consumption script should also check for the word "back" and ignore this file altogether.
Do you see any problem with that approach? Or even better: do you have a better idea to solve this elegantly? Obviously, I could do all outside of paperless-ng with another service, but I would very much like to keep it all in one place as this is much easier to backup and transfer to other systems then having yet another service running.
thanks!
Cheers
Max
Beta Was this translation helpful? Give feedback.
All reactions