Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can iText generate regular text files?

 
Jehan Jaleel
Ranch Hand
Posts: 196
  • 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: 20750
30
Eclipse IDE Firefox Browser MySQL Database
  • 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: 42967
73
  • 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 :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic