Dec 262017
Convert IBM character set text files to postscript printer files. | |||
---|---|---|---|
File Name | File Size | Zip Size | Zip Type |
PC2PS.C | 29832 | 7726 | deflated |
PC2PS.DOC | 4983 | 1958 | deflated |
PC2PS.EXE | 49392 | 24432 | deflated |
Download File PC2PS11.ZIP Here
Contents of the PC2PS.DOC file
So, You replaced Your old dot-matrix-printer with a brand new
PostScript laserprinter, everything seemed fine until You wanted
to print an ASCII file. Up to now You just typed PRINT filename,
or maybe COPY filename LPT?: (Your favorite printerport goes here),
and out it came, Brrepeti BREEP Tick Tick. But these times are over!
Now You need sophisticated Wordprocessors or DTP-programs with
special drivers to get any output from Your printer. And loading
these programs often takes longer than printing the text.
Don't despair!
Here comes...
PC2PS,
a simple ASCII to PostScript converter that even knows extended
and linedrawing characters. And it's free!!
#include
USAGE
pc2ps [-r[angle]] [-s[pointsize]]
[-h[space]] [-p[linepitch]] [-o[offset]]
[-oe[offset]] [-m[topmargin]] [-w[linewidth]]
[-l[pagelength]] [-i] [-?] [files...]
> LPT?:
DESCRIPTION
PC2ps reads text from file(s) (or standard input if specified)
and produces postscript output on stdout, suitable for piping
to any postscript device (such as an Apple Laserwriter) or for
using with any program that expects postscript input (such as a
postscript interpreter used to drive some other raster
device). Text is normally aligned to the top and left edges
of the imageable region of the page (usually slightly smaller
than the physical page size), and a new page is started
whenever text would fall below this region. The following
options are understood, with all values able to be given
as integer or real:
-r[angle]
Rotate the page by the given angle (in degrees). The
default angle is 0 (portrait mode). If -r is used
without specifying an angle, angle is set to 90
(landscape mode). Angles other than 0 or 90 may cause
text to fall outside the imageable region.
-s[pointsize]
Set the pointsize (character size) to the given value (72
points = 1 inch). The default pointsize is 10. If -s is
used without specifying the pointsize, the pointsize is
set to 12.
-h[space]
Increase the horizontal spacing of characters by the
given fraction of the current pointsize. For example,
using `-h0.25' when pointsize = 12 causes the horizontal
spacing to increase by 3 points. The default horizontal
spacing is 0 i.e. the characters are placed next to each
other, using their natural widths. If -h is used without
specifying spacing, spacing is set to 0.25 x pointsize.
-p[linepitch]
Set the line spacing of printed text to the given value
(72 points = 1 inch). Unless a value is specified for
the linepitch using this option, the linepitch used will
be equal to pointsize + 2.
-o[offset]
Offset text from the left edge of the imageable region,
by the given distance (in centimeters) on all pages. The
default offset is 0. If -o is used without specifying an
offset, offset is set to 1 cm.
-oe[offset]
Offset text from the left edge of the imageable region,
by the given distance (in centimeters) on even pages
only. The default offset for even pages is the same as
that for odd pages. If -oe is used without specifying an
offset, offset is set to 1 cm on even pages. Option -o
followed by the option -oe may be used to set offsets on
odd and even pages independently.
-m[topmargin]
Set the top margin to the given value (in centimeters).
The default is to set this to 0.5 cm. If -m is specified
without a value for top margin, top margin is set to 1.5
cm.
-w[linewidth]
Specify the number of characters per line. Longer lines
are folded. The default is no folding. If -w is used
without specifying linewidth, linewidth is set to 72
characters per line. Useful with fixed-width fonts.
-l[pagelength]
Specify the number of lines per page. The default is to
start a new page whenever text falls below the imageable
region. If -l is used without specifying a pagelength,
pagelength is set to 60.
-i
Accept input from Stdio.
-?
Print a list of options and quit.
The default values (no options) give a layout that is equivalent
to a normal lineprinter printout. Useful for listings etc.
Options without parameters give a much prettier layout (larger font,
better margins). Useful for manuals etc.
AUTHOR
This program is based on TEXT2PS by Stephen Frede (get this one,
too!!).
The Pcfont was handcrafted by Roland Giersig.
If you like the program, drop me a line at [email protected]
Share and Enjoy!
PostScript laserprinter, everything seemed fine until You wanted
to print an ASCII file. Up to now You just typed PRINT filename,
or maybe COPY filename LPT?: (Your favorite printerport goes here),
and out it came, Brrepeti BREEP Tick Tick. But these times are over!
Now You need sophisticated Wordprocessors or DTP-programs with
special drivers to get any output from Your printer. And loading
these programs often takes longer than printing the text.
Don't despair!
Here comes...
PC2PS,
a simple ASCII to PostScript converter that even knows extended
and linedrawing characters. And it's free!!
#include
USAGE
pc2ps [-r[angle]] [-s[pointsize]]
[-h[space]] [-p[linepitch]] [-o[offset]]
[-oe[offset]] [-m[topmargin]] [-w[linewidth]]
[-l[pagelength]] [-i] [-?] [files...]
> LPT?:
DESCRIPTION
PC2ps reads text from file(s) (or standard input if specified)
and produces postscript output on stdout, suitable for piping
to any postscript device (such as an Apple Laserwriter) or for
using with any program that expects postscript input (such as a
postscript interpreter used to drive some other raster
device). Text is normally aligned to the top and left edges
of the imageable region of the page (usually slightly smaller
than the physical page size), and a new page is started
whenever text would fall below this region. The following
options are understood, with all values able to be given
as integer or real:
-r[angle]
Rotate the page by the given angle (in degrees). The
default angle is 0 (portrait mode). If -r is used
without specifying an angle, angle is set to 90
(landscape mode). Angles other than 0 or 90 may cause
text to fall outside the imageable region.
-s[pointsize]
Set the pointsize (character size) to the given value (72
points = 1 inch). The default pointsize is 10. If -s is
used without specifying the pointsize, the pointsize is
set to 12.
-h[space]
Increase the horizontal spacing of characters by the
given fraction of the current pointsize. For example,
using `-h0.25' when pointsize = 12 causes the horizontal
spacing to increase by 3 points. The default horizontal
spacing is 0 i.e. the characters are placed next to each
other, using their natural widths. If -h is used without
specifying spacing, spacing is set to 0.25 x pointsize.
-p[linepitch]
Set the line spacing of printed text to the given value
(72 points = 1 inch). Unless a value is specified for
the linepitch using this option, the linepitch used will
be equal to pointsize + 2.
-o[offset]
Offset text from the left edge of the imageable region,
by the given distance (in centimeters) on all pages. The
default offset is 0. If -o is used without specifying an
offset, offset is set to 1 cm.
-oe[offset]
Offset text from the left edge of the imageable region,
by the given distance (in centimeters) on even pages
only. The default offset for even pages is the same as
that for odd pages. If -oe is used without specifying an
offset, offset is set to 1 cm on even pages. Option -o
followed by the option -oe may be used to set offsets on
odd and even pages independently.
-m[topmargin]
Set the top margin to the given value (in centimeters).
The default is to set this to 0.5 cm. If -m is specified
without a value for top margin, top margin is set to 1.5
cm.
-w[linewidth]
Specify the number of characters per line. Longer lines
are folded. The default is no folding. If -w is used
without specifying linewidth, linewidth is set to 72
characters per line. Useful with fixed-width fonts.
-l[pagelength]
Specify the number of lines per page. The default is to
start a new page whenever text falls below the imageable
region. If -l is used without specifying a pagelength,
pagelength is set to 60.
-i
Accept input from Stdio.
-?
Print a list of options and quit.
The default values (no options) give a layout that is equivalent
to a normal lineprinter printout. Useful for listings etc.
Options without parameters give a much prettier layout (larger font,
better margins). Useful for manuals etc.
AUTHOR
This program is based on TEXT2PS by Stephen Frede (get this one,
too!!).
The Pcfont was handcrafted by Roland Giersig.
If you like the program, drop me a line at [email protected]
Share and Enjoy!
December 26, 2017
Add comments