I'm currently building a text based console application to manage printing, scanning, etc but as usuall i have stumped my self and have had to come to stackoverflow for help. Any help is appreciated.
I have imported the os library.
import os
But unsure of a function to scan.
Scanning
You can check this library called LibInsane to scan from printers using Python. But to install the library you're going to have to build the library from the source.
Install the LibInsane library
How to use Libinsane in a Python program
command line
The latter 2 commands must be run inside the libinsane directory. You can navigate to the example sample projects and run:
python script
Modify the
.pyfile paths and the output image path before running itThis is what the
scan.pyfile containsYou can read more from the official documentation here
Printing
To print from a specific printer using python, check out this answer here https://stackoverflow.com/a/76981889/13520498