Motivation: On Windows / macOS / Linux, you can easily share a printer for other computers in the same network to use (via CUPS for example). However, sharing a scanner is quite tricky. This web application is made to allow sharing scanner from one computer.
The application consists of 2 parts:
- Backend: To trigger scan function, manage files,...
- Frontend: To display the result, export to PDF,...
TODO: add screenshots
- Login with a password
- Trigger scan new page from web
- Select multiple pages and export them to a single PDF
While I'm developing this application using my Fedora Linux PC, I couldn't (yet) make it work on Linux (using SANE)
Platform | Implementation | Working? |
---|---|---|
Windows | WIA via powershell script | ✅ Yes |
macOS | using scanline | ✅ Yes |
Linux | using SANE | ❌ No |
Note: For convenience, the whole project is bundled into one single js file, which includes all dependencies and also frontend part. You don't need to run npm i
or npm run build
unless you want to build it yourself.
- Install nodejs (any version >= 16 should work)
- Enable script execution for powershell, see this guide
- Download the
web-document-scanner.js
from the latest release, click here to go to release - Run
$env:PASSWORD='your_password_here'; node web-document-scanner.js
- Access http://localhost:9080
Alternatively, you can make a batch file to launch it automatically.
- Install nodejs (any version >= 16 should work)
- Install scanline from this repository. (Hint: you can use the pre-built .pkg file)
- Download the
web-document-scanner.js
from the latest release, click here to go to release - Run
PASSWORD='your_password_here' node web-document-scanner.js
- Access http://localhost:9080
Alternatively, you can make a shell file to launch it automatically.
(TODO)