wasegraves
Fri, 27 Jun 2008 14:55:00 -0700
-------------- Original message ---------------------- From: Jason Chen <[EMAIL PROTECTED]> > > > Hi, > > I am in need to write text into both PDF and plain text (to be sent in an > email.) > > I am wondering if there is a PlainTextWriter that can be used as a second > listener? > No. OTOH, it seems to me you could easily generate a plain text file and a PDF version of the same text by turning the problem around. Think about generating a plain text file (not an iText problem) first, and then converting it to PDF with something like the Txt2Pdf tool in the iText Toolbox. You should be able to wrap all this up in a nice Swing GUI interface, or craft it as a command-line tool, your choice. BTW, "cat" is a nice plain text tool. ;-) As you may know, the default behavior of "cat" is to take what it gets on STDIN and put it right back out on STDOUT. So, ISTM a shell script that captures keyboard input and sends it to a file, as well as to a program like Txt2Pdf might do the trick for you. > The HtmlWriter has too many logic handling the tags in there. There should > be a default PlainTextWriter provided with the default API, right? > IMO, there should not be a PlainTextWriter in iText. Just my opinion, as iText is a library for creating and manipulating PDFs, not a library for creating plain text files. Just my $0.02. > Thanks for the help. > > Jason Chen :working: You're very welcome. Best regards, Bill Segraves ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar