strpdf
creates single-page PDF files populated with one-line text strings.
The page size and string placement are configured with command line options.
It was created as a scriptable tool for generating annotated overlays to merge
with other PDF documents using tools like pdftk.
The Macintosh and Windows versions of strpdf
are self-contained executables.
You may install them anywhere you'd like, preferably somewhere in your PATH
.
The "kit" version of strpdf
will run on any platform as long as an
appropriate Tclkit is present.
A Tclkit is a single executable file that contains an entire
Tcl installation. The 8.4.16 series is recommended.
Install the Tclkit as tclkit
along with the strpdf
kit. You may invoke
the strpdf
kit directly or as an argument to the interpreter: tclkit strpdf.kit
.
strpdf [OPTIONS, FONT] -text STRING X Y [FONT] [-text STRING X Y [FONT]]...
OPTIONS: DEFAULT:
-paper size letter
-width units 8.5
-height units 11
-units in|mm|pt in
-orient landscape portrait
-compress 0|1 0
FONT: DEFAULT:
-size points 12
-font face Helvetica
Font options given with general options are used as defaults.
Font options given after a -text option apply only to that string.
X [OFFSET]: Y [OFFSET]:
left units top units
center middle
right units bottom units
PDF data is printed to stdout. Valid fonts faces and paper sizes can be
queried with 'strpdf font' or 'strpdf paper'.
More examples and information are available at
the strpdf
web page. Any
updates to the program will be released at that address as well.
strpdf
uses pdf4tcl,
a fine little package for creating simple PDF files.
Please send me any questions, comments, or
contributions you have regarding strpdf
.
Parties interested in localizing strpdf
's error messages are encouraged
to contact me for more information.