DocumentRenderer... Is printing styleddocuments possible?
posted 10 years ago
Recently I have started using the DocumentRenderer class to print informaton inside of a Jeditorpane or Jtextpane as this seems the most common sense approach to doing such a task in less than 500 lines of code.
However, I am trying to print a styleddocument where different font sizes and types are being used. After using the following code
This only prints out the lines of text entered, and NOT the style or size applied to this text.
Does anyone here print out styleddocuments from a JTextPane, or use DocumentRender that would be able to help with this situation.