This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
Or use a library like PDFBox to extract the text out of the PDF :-)


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can iText generate regular text files?
 
Similar Threads
iText and template.
Arabic using iText
reports
printing in printer friendly format
Append PDF using Itext