• Post Reply Bookmark Topic Watch Topic
  • New Topic

DocumentRenderer... Is printing styleddocuments possible?  RSS feed

 
Tim frank
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Many Thanks
 
Tim frank
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone sure if this is possible
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!