text2pdf convert text file(s) to pdf.
doc generated from the script with gendoc
bash script, version=1.05

Synopsis

text2pdf [options] [file ...]

Options

-h,--help
print short help and exit
-H,--Help
print full documentation via less and exit
-V,--version
print version and exit
-c,--cols=X
print X columns on the page, default: 1
-f,--font=X
set font to X; default: Latin Modern Mono
-l,--lscape
print landscape; default: portrait
-m,--margin=X
set margins to X mm; default: 10
-n,--number
number the lines; default: no numbering
-o,--out=X
write PDF to X[.pdf]; default: write to standard output
-p,--page
start each file on a new page.
-s,--size=X
set fontsize to X points; default: 10
   --squeeze
squeeze multiple newlines in input to one
   --tabstop=X
have tabs X characters apart; default: 8
-t,--title
print counter + file name before the output of each file
-w,--white=X
set white between lines to X points; default: 2

Description

text2pdf converts one or more text files to pdf. You can print the text in up to 9 columns (default: 1), in any font size (default: 10). The font used by default is Latin Modern Mono. You can start each file on a new page and introduce each file with a numbered header containing its name; and you can number the lines.

Author

Wybo Dekker

Copyright

Released under the GNU General Public License

Functions used:


inttest

synopsis:
inttest opt int
description:
check if int is a positive integer and print it; if not,
give a fatal message.

excheck

synopsis:
excheck executable1 [executable2...]
description:
check if all needed execs are there and getopt is GNU

handle_options

synopsis:
handle_options "$@"
description:
handle the options.
globals used:
Myname Version
globals  set:
args