
The JPDF allows you to print Swing Text Components (JTextPane, JTextArea, and JEditorPane)
on as many pages as required. The pagination logic ensures that the text is wrapped at the
right page margin, and that the last line on each page is not bisected at the bottom page margin.
The options which control the print-rendering of a Text Component can be specified
programatically or from a specialized Page Setup dialog (pictured to the right).
These options include:
-
The Text Component can be scaled by a specified Scale Factor.
-
The Text Component can be printed without using its background color.
-
The selected text can be highlighted.
-
The Text Component can be offset from the page margins and headers/footers.
Additional options can be used to specify the content of page headers/footers, and page framing.
The image below shows the first page of a Text Component print-out.
|
|