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:
Additional options can be used to specify the content of page headers/footers, and page framing.