Two Laptop Bag
The moose likes Other Open Source Projects and the fly likes Can iText generate regular text files? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Can iText generate regular text files?" Watch "Can iText generate regular text files?" New topic
Author

Can iText generate regular text files?

Jehan Jaleel
Ranch Hand

Joined: Apr 30, 2002
Posts: 196
Hi,

I know iText is an API for generating PDFs but can I also use it to generate regular txt files. My requirement is that some users want their reports in PDF and others as text files.

Thanks,
Jahan
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19725
    
  10

Jehan Jaleel wrote:I know iText is an API for generating PDFs but can I also use it to generate regular txt files.


No.

My requirement is that some users want their reports in PDF and others as text files.


Then use iText to generate the PDF files and something else to generate the text files.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Or use a library like PDFBox to extract the text out of the PDF :-)
 
Have you checked out Aspose?
 
subject: Can iText generate regular text files?
 
It's not a secret anymore!