Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can J2TextPrinter print RTF documents with embedded images?

0
Posted

Can J2TextPrinter print RTF documents with embedded images?

0

The current Java JTextPane implementation is not able to read RTF documents containing embedded images. However, you can read in an RTF document without images, and then use the method JTextPane.insertIcon(Image) to embed a graphics images at a given position in the RTF document. Alternatively, the J2FlowPrinter component of J2PrinterWorks lets you print RTF in a J2TextPrinter instance, followed immediately by a J2PanelPrinter instance containing an Image, followed immediately by more RTF in a second J2TextPrinter instance.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123