Hello everyone,
We use iText to generate a PDF file from Java program that draws to the
Graphics2D object. PdfWriter class nicely allows us to preserve the
original logic, by doing this:
PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream(filename));
document.open();
DefaultFontMapper mapper = new DefaultFontMapper();
mapper.insertDirectory("c:\\windows\\fonts");
PdfContentByte cb = writer.getDirectContent();
Graphics2D g2 = cb.createGraphics(w, h, mapper);
< and off it goes - the rest is done by the report generator's logic >
Recently the need arouse to generate reports in RTF format.
Unfortunately, RtfWriter does not implement getDirectContent() method,
so we cannot use it as a simple substitute to PdfWriter in the context
of our app.
What alternatives are there? Is there a utility (in iText or outside) to
convert PDF to RTF? (I know there are stand-alone converter apps that
can do it, but I am looking for a Java-based solution). Or perhaps some
other way of getting the RTF output from Graphics2D-based drawing?
Any clues are highly appreciated.
Alex Molochnikov
Gestalt Corporation
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions