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