| TextPrinter is a Java component that makes it
easy to print multi-page single font text documents from Java.
Plain text documents may be mundane, but they are at the heart of many
useful applications, covering standard output of all kinds: program listings,
generated reports, data printouts, log files, tables, archival printer
files, and even today many email, news, help and documentation files.
Basic Java printing was introduced in JDK 1.1 but only really supports
printing what your program displays on the screen. Even printing
simple text documents is hard. There is no support for pagination,
page formatting, line wrap, or tabs. There is no easy way to print
the entire contents of text areas, strings, or string buffers central to
many applications. While JDK 1.2 has significantly improved printing
support, JDK 1.1 is more widely deployed with support on virtually all
OS's, browsers, tools, etc. |
|
TextPrinter is a simple but comprehensive solution for Java
plain text printing. It supports:
-
pagination (page breaks, page range)
-
line wrap
-
line breaks
-
line spacing
-
tab expansion (absolute and relative)
-
margins (left, right, top, and bottom)
-
headers (left, center, right) - can't change in Free Version
-
footers (left, center, right)
-
page numbering
-
date and time formatting
-
font selection (body and headers/footers)
-
print monitor job name control
TextPrinter has these benefits and advantages:
-
Easy to use - a simple constructor and single print method is all it takes
-
Works great as a bean in visual builders or as a simple class
-
Works with JDK 1.1 or JDK 1.2, no need to give up JDK 1.1 support
-
Source code for a sample application with Page Setup Dialog included
-
Free Version prints an "evaluation only" notice in the headers and every
5th page. Product and Source Code Versions also available.
|