FontSize and LPI

"FontSize=" is always specified in typographic "points" (1/72 inches) with the default being 12pt for LPI=6
(Lines Per Inch) and 9pt for LPI=8. When 8 LPI is chosen then 9pt is forced. Valid font sizes are 9pt, 10pt,
11pt or 12pt.

The font that is used is always "Courier New" and cannot be changed. Columns

The "Columns=" value should normally be specified as 0 (zero) to ensure a proper default character pitch
of 10 characters per inch. Specifying a nonzero "Columns=" value causes all characters on your print line
to either be squished or stretched in an effort to try and honor your specified value, usually resulting in a
very ugly looking printout. GreenBar, FeedHoles and BarColor

The default for "GreenBar=" and "FeedHoles=" is "No". "BarColor=" defaults to "Green". Other valid "Bar-
Color=" values are: "Blue", "Yellow", "Red", "No" or "#rrggbb".

Specifying "BarColor=No" will draw an outlined box around the area where the green bars would normally
be, but without being filled in with any background color (i.e. the color of the bar is set to "transparent").
Custom green bar colors can be specified using the "#RRGGBB" html RGB color value format. Compression

The “Compress=Yes” option (the default) performs normal ZLIB compression of the actual PDF page data
stream in order to conserve Windows host disk space. “Compress=No” should only be used when repor-
ting a problem viewing a HercPrt generated PDF file since such problems are usually the result of an im-
properly formatted PDF data stream and using ZLIB compression makes it difficult to see the actual PDF

6.2.9 txt2pdf Utility

HercPrt also ships with a command-line tool called "txt2pdf" which will convert a text file into either a PDF
or RTF file.

All of the PDF options that can be specified to HercPrt can also be specified to txt2pdf. Note however that
just like with HercPrt, when converting text files to RTF files then not all of the PDF options are supported. Syntax


TXT2PDF [-option [-option ... ]]
infile [-o outfile]


Êʬ¬¬ TXT2PDF ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬§¬¬¬¬¬¬ -i
infile ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬Ê

-option ¬¬¬¨¬¬¬¯


outfile ¬¬¬¯ Parameter



Indicates that each input file line starts with an ASA/ANSI carriage control character
(e.g. 1, 0, -, +, or <blank>).

-l lpi

Lines per inch: 6 or 8. (The default is 6 LPI).

-f fontsize

Font size: 9, 10 11 or 12 pt. (The default is 12 pt, if 6 LPI; otherwise 9pt).

-w width

Paper width in inches or millimeters. (Default is 13.875 inches).

-h height

Paper height in inches or millimeters. (Default is 11.0 inches).

-m margin

Left / right margin in inches or millimeters. (Default is 0.25 inches).

-t “title”

Document title property.

-s “subject”

Document subject property.

-r “author”

Document author property.

-i infile

The name (and optionally path) of the input “.txt” file to be converted.

-o outfile

The name (and optionally path) of the output “.pdf” or “.rtf” file (see notes).

PDF options:


Green bar paper.

-c color

Green Bar color: 'Green' (default), 'Blue', 'Red', 'Yellow', or custom color specified
as '#RRGGBB' HTML color value.


No color (i.e. outlined "transparent" green bar).




Uncompressed PDF output. (Default is compressed).

-# cols

Columns: 0-255. (Default is 0; see notes).


All PDF options are ignored when the output file is “.rtf” and not “.pdf”. The -i switch is required in order to support specifying all options in any order. Options may pre-
cede the name of the input file or follow it or both, but the -i switch is required to identify the name
of the actual input file.
Previous Page Next Page