How can I print JEditorPane HTML, having Styled Text (different fonts and sizes), images, tables, etc.?
Sandip Chitale The chapter 22 of this book answers your quetion. You can download the chapter from http://www.manning.com/Robinson/Chapters.html22.4 PRINTING STYLED TEXT
It takes into account the fact that Printed Page size is different than the JEditorPane displayed on the screen.
Especially look at section
and use of Class WordProcessor.PrintView