Is there any way, using Java, to convert a rtf file to a jpg file on the fly?
My web app shares a set of files with a Windows app. The windows app displays the rtf in an ole box on a report when viewed.
I am using JasperReports to generate a PDF file for report viewing and printing. I cannot find a way to attach the rtf to the JasperReport. I know it can handle images so i thought that if I could convert rtf to jpg on the fly it might solve my issue. Right now at least on the view part I append a HyperLink to the rtf but this is not the users expectations.
The best I can think of is to display the RTF in a Swing component (the class is called RTFEditorKit), and then to take a screenshot using the Robot class. I'm not sure that that would work on a server, or that the screenshot would include the parts not visible in the Swing window, but it might be worth a try.
Did you just should on me? You should read this tiny ad:
global solutions you can do at home or in your backyard