GitHub

  Usage: scan2pdf <options>
    --interactive  -I  Interactive mode
    --type         -t  Document Type
                       Possible values are:
                         d[ocument]      for a text document
                         i[llustration]  for a drawing
                         ph[otograph]    for a photographic pictue
                         pr[int]         for a scan from a print e.g. newspaper
                         r[aw]           for not applying any post-processing
                         Default: document
    --resolution   -r  Resolution of scan
                         Possible values are 75, 150, 300, 600, 1200
                         Default: 300
    --page         -p  Page Size
                         Possible values are A4, A5, A6, Letter, CreditCard, CD-Cover
                         Default: A4
    --depth        -d  Color depth of scan
                         1 for LineArt (Black & White)
                         8 for Grayscale and Color
                         16 for Color
                         Default: 8
    --format       -f  PDF image compression
                         Possible values are jpeg, zip, lzw
                         Default: jpeg
    --quality      -q  Recommended for jpeg, zip, png
                         Values for jpeg from 0 to 100
                         Values for png and zip from 0 to 9
                         Default: 90
     --mode        -m  Color mode of scan
                         Possible values are Lineart, Gray, Color
                         Default: Color
     --ocr         -R  Run the scan through character recognition
                         Default: false
     --ocr-lang    -L  Set the language for the character recognition
                         Every language 'tesseract' supports
                         Default: deu+eng+fra+ita+jpn+osd
     --output      -o  Filename of PDF file
                         Default: scan_2022-01-26_23-10-20
     --orientation -O  Document orientation
                         Possible options p[ortrait], l[andscape]
                         Default: portrait
     --scanner     -s  Set the scanner to be used
                         E.g: gensys:libusb:001:005
     --help        -h  This message

Read the original on github.com ↗