sane-scan-pdf icon indicating copy to clipboard operation
sane-scan-pdf copied to clipboard

Simulated duplex scanning with page re-ordering

Open rajil opened this issue 2 years ago • 7 comments

I have a Brother Printer (DCP-L2541DW) which has a flat bed scanner and an ADF. The scanner does not due duplex scanning though. At the moment i am using brscan to enable the 'Scan to PC' on the printer. This way i can scan a document with a press of a button.

As i mentioned the printer can only do single side scanning. After it has scanned the page, the printer LCD does pop a question whether to scan another page or continue. Unfortunately, brscan (using scanimage) does not scan the second page at all. I am curious whether your code can be used with brscan for manual duplex scanning using the flat bed scanner?

rajil avatar Feb 19 '22 09:02 rajil

I have the same printer though I never use the flat bed for scanning. But I can try to play around with it.

Let me understand your use case though... You want to scan duplex, ideally via the ADF but manually if necessary?

rocketraman avatar Feb 19 '22 14:02 rocketraman

I want to scan duplex manually using 'flat bed'. If you try this out on Windows using Brother Control Centre software you would see that it is possible. I was wondering if that is possible in linux.

After posting the above i came across this patch. With this i am now able to duplex scan using ADF. This has reduced the urgency quite a bit.

Does your script support manual duplex with 'ADF' since the brother does not support automatic duplex? It would require scanning odd/even pages separately and then merging them.

rajil avatar Feb 19 '22 15:02 rajil

It doesn't support that currently, but it wouldn't be too difficult to add.

rocketraman avatar Feb 23 '22 07:02 rocketraman

Hmm, the downside of this is that the script becomes "interactive" to some extent, because it has to scan the first set of pages, and then the second.

It would probably make sense for this to be a wrapper around the usual scan script, which would simply use pdfseparate and pdfunite to re-order the pages.

I'll take a PR for that functionality but probably won't build it myself.

rocketraman avatar Feb 23 '22 07:02 rocketraman