File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can iText generate regular text files?

 
Jehan Jaleel
Ranch Hand
Posts: 196
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20203
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or use a library like PDFBox to extract the text out of the PDF :-)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic