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 TTF/OTF 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
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.

Options

--help
prints short help information.
--Help
Prints full documentation via less.
--title
the text of each file will be preceeded with a header line containing a counter followed by the file name.
--page
the text of each file will start on a new page.
--cols=X
the output will be printed in X columns, where n=1-9, default: 1. This is useful, for example, for printing a file listing.
--size=X
set the point size to X, default: 10.
--white=X
set white between lines to X, default: 2.
--font=X
changes the font to X, which must be the PostScript name of an available TTF or OTF font. The default (probably in your distro) is Latin Modern Mono. Be sure the choose a font that contains all characters occurring in your file. You probably also want the font to be monospaced.

--margin=X
set the margins to X mm; default: 10mm

--number
lines will be numbered.
--tabstop=X
tabs will be expanded to X spaces. The default is 8.
--squeeze
multiple empty lines will be squeezed to a single empty line.

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