I m trying to print the contents of JEditorPane but not able to do so as facing problems with multiple page output. The last line is getting printed only upper half on the first page and then second page has the rest portion. can anyone help me with this.