@@ -13,17 +13,17 @@ help me achieve that goal and are highly appreciated.
1313
1414## Requirements
1515** Dependencies:** <br />
16- _ Bash (>=v4.0)_ ,
17- _ scanimage_ (part of [ SANE] ( http://www.sane-project.org/ ) ),
18- _ tiffcp_ (part of [ LibTIFF] ( http://libtiff.maptools.org/ ) ),
19- _ tiff2pdf_ (part of [ LibTIFF] ( http://libtiff.maptools.org/ ) )
16+ _ Bash_ (&ge ; v4.0),
17+ _ scanimage_ (part of [ SANE] ( http://www.sane-project.org/ ) ),
18+ _ convert_ (part of [ ImageMagick] ( https://www.imagemagick.org/ ) )
2019-or-
21- _ convert _ (part of [ ImageMagick ] ( https ://www.imagemagick .org/) )
20+ _ tiffcp _ / _ tiff2pdf _ (part of [ LibTIFF ] ( http ://libtiff.maptools .org/) )
2221
2322** Packages:** <br />
24- Ubuntu: _ bash_ , _ sane-utils_ , _ libtiff-tools_ , _ imagemagick_ <br />
25- Gentoo: _ app-shells/bash_ , _ media-gfx/sane-backends_ , _ media-libs/tiff_ ,
26- _ media-gfx/imagemagick_
23+ Ubuntu: _ bash_ , _ sane-utils_ , _ imagemagick_ -or- _ libtiff-tools_ <br />
24+ Gentoo: _ app-shells/bash_ , _ media-gfx/sane-backends_ , _ media-gfx/imagemagick_
25+ -or- _ media-libs/tiff_
26+
2727
2828## Download & Installation
2929Refer to the [ releases] ( https://github.com/fonic/scan2pdf/releases ) section
@@ -33,8 +33,8 @@ the downloaded archive to a folder of your choice.
3333## Configuration
3434Open ` scan2pdf.conf ` in your favorite text editor and adjust the settings
3535to your liking. Refer to embedded comments for details. Refer to
36- [ this section] ( #configuration-options ) for a listing of all configuration
37- options and current defaults.
36+ [ this section] ( #configuration-options ) for a listing of configuration options
37+ and current defaults.
3838
3939## Quick Start
4040To scan a single document to PDF file, use the following command:
@@ -47,14 +47,25 @@ To scan multiple documents to PDF files, use the following command:
4747$ ./scan2pdf.sh -a -o document_%05d.pdf
4848```
4949
50+ See [ this section] ( #command-line-options ) for a detailed list of command line
51+ options.
52+
53+ ## Contributing
54+
55+ To date, _ Scan to PDF (scan2pdf)_ has only been tested with _ Brother_ printers.
56+ If you own a printer manufactured by _ HP_ , _ Canon_ , _ Epson_ or some other
57+ well-established brand and would like to help with adding support, please
58+ create an [ issue on GitHub] ( https://github.com/fonic/scan2pdf/issues ) and
59+ provide the output of ` scanimage --help ` .
60+
5061## Command Line Options
5162
5263Available command line options:
5364```
5465Usage: scan2pdf.sh [OPTIONS] OUTFILE
5566
56- Scan to PDF (scan2pdf) v2.3 (01/14 /24)
57- Scan documents directly to PDF file .
67+ Scan to PDF (scan2pdf) v2.4 (01/15 /24)
68+ Scan documents directly to PDF files .
5869
5970Options:
6071 -d, --device STRING Scanner device ['brother4:net1;dev0']
@@ -107,7 +118,7 @@ Configuration options and current defaults:
107118# Scan to PDF (scan2pdf) -
108119# -
109120# Created by Fonic <https://github.com/fonic> -
110- # Date: 04/17/21 - 01/14 /24 -
121+ # Date: 04/17/21 - 01/15 /24 -
111122# -
112123# ------------------------------------------------------------------------------
113124
@@ -175,32 +186,33 @@ WIDTH_MIN=0
175186WIDTH_MAX=216
176187HEIGHT_MIN=0
177188HEIGHT_MAX=356
178- # WIDTH_DEFAULT=210 # DIN A4 (210.0 mm / 8.3 in)
179- # HEIGHT_DEFAULT=297 # DIN A4 (297.0 mm / 11.7 in)
180- # WIDTH_DEFAULT=216 # Legal (215.9 mm / 8.5 in)
181- # HEIGHT_DEFAULT=356 # Legal (355.6 mm / 14.0 in)
182- WIDTH_DEFAULT=216 # Letter (215.9 mm / 8.5 in)
183- HEIGHT_DEFAULT=279 # Letter (279.4 mm / 11.0 in)
189+ # WIDTH_DEFAULT=210 # DIN A4 (210.0 mm / 8.3 in)
190+ # HEIGHT_DEFAULT=297 # DIN A4 (297.0 mm / 11.7 in)
191+ # WIDTH_DEFAULT=216 # Legal (215.9 mm / 8.5 in)
192+ # HEIGHT_DEFAULT=356 # Legal (355.6 mm / 14.0 in)
193+ WIDTH_DEFAULT=216 # Letter (215.9 mm / 8.5 in)
194+ HEIGHT_DEFAULT=279 # Letter (279.4 mm / 11.0 in)
184195
185196# Options passed to 'scanimage' (array of strings)
186- # SCANIMAGE_OPTS=("--progress" "--verbose") # display scan progress, use verbose output
187- SCANIMAGE_OPTS=(" --progress" ) # display scan progress
197+ # SCANIMAGE_OPTS=("--progress" "--verbose") # Display scan progress, produce verbose output
198+ SCANIMAGE_OPTS=(" --progress" ) # Display scan progress
199+
200+ # Options passed to 'convert' (array of strings)
201+ # NOTE: uses separate options for INPUT and OUTPUT
202+ CONVERT_INPUT_OPTS=() # No input options
203+ # CONVERT_OUTPUT_OPTS=("-compress" "zip") # Use ZIP compression (lossless, higher quality, larger PDF file)
204+ CONVERT_OUTPUT_OPTS=(" -compress" " jpeg" " -quality" " 95" ) # Use JPEG compression (quality 95) (lossy, lower quality, smaller PDF file)
188205
189206# Options passed to 'tiffcp' (array of strings)
190- TIFFCP_OPTS=(" -c" " lzw" ) # use LZW compression (fast)
207+ # NOTE: only used if 'convert' is not available
208+ TIFFCP_OPTS=(" -c" " lzw" ) # Use LZW compression (fast, lossless)
191209
192210# Options passed to 'tiff2pdf' (array of strings)
193- # TIFF2PDF_OPTS=("-z") # use ZIP compression (lossless, higher quality, bigger PDF file)
194- TIFF2PDF_OPTS=(" -j" " -q" " 95" ) # use JPEG compression (quality 95) (lossy, lower quality, smaller PDF file)
195-
196- # Options passed to 'convert' (array of strings)
197- # NOTE:
198- # 'convert' is only used if 'tiff2pdf' is not available
199- # 'convert' uses separate options for INPUT and OUTPUT
200- CONVERT_INPUT_OPTS=() # none
201- CONVERT_OUTPUT_OPTS=() # none
211+ # NOTE: only used if 'convert' is not available
212+ # TIFF2PDF_OPTS=("-z") # Use ZIP compression (lossless, higher quality, larger PDF file)
213+ TIFF2PDF_OPTS=(" -j" " -q" " 95" ) # Use JPEG compression (quality 95) (lossy, lower quality, smaller PDF file)
202214```
203215
204216##
205217
206- _ Last updated: 01/14 /24_
218+ _ Last updated: 01/15 /24_
0 commit comments