Skip to content

A CLI for controlling scanners on MacOS

License

Notifications You must be signed in to change notification settings

gpanther/scanner-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scanner-cli

A MacOS/Linux CLI client for scanning documents using a network scanner supporting the Mopria Alliance eSCL Scan Technical Specification

Known to work with at least:

  • HP Deskjet 4640 series
  • HP OfficeJet Pro 9010 series
  • Canon Pixma G3260
  • Brother MFC-L2710DW
  • Brother DCP-L3550CDW

Installation

pip install -f requirements.txt

Usage

usage: scanner.py [-h] [--source {feeder,flatbed,automatic}] [--format {pdf,jpeg}] [--grayscale] [--resolution {75,100,200,300,600}] [--debug] [--no-open]
                  [--quiet] [--duplex]
                  filename

positional arguments:
  filename

optional arguments:
  -h, --help            show this help message and exit
  --source {feeder,flatbed,automatic}, -S {feeder,flatbed,automatic}
  --format {pdf,jpeg}, -f {pdf,jpeg}
  --grayscale, -g
  --resolution {75,100,200,300,600}, -r {75,100,200,300,600}
  --debug, -d
  --no-open, -o
  --quiet, -q
  --duplex, -D
  --today, -t           Prepend date to file name in ISO format
  --region REGION, -R REGION
                        Specify a region to scan. Either a paper size as understood by the papersize library (https://papersize.readthedocs.io - append "-L" for landscape -
                        so "A4-L" for example) or the format "Xoffset:Yoffset:Width:Height", with units understood by the papersize library. For example: 1cm:1.5cm:10cm:20cm

About

A CLI for controlling scanners on MacOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%