• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Itext generate output in Text format (2.1.4 jar version)

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using 2.1.4 jar version of iText to generate output in PDF format. I also need to display the same ( the data) in plain text format.
Please let me know if it is possible? If it is, how? If not, suggest suitable API for generating plain text output.

Regards,
Amol
 
lekurwale amol
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, will it be practical to do so? Instead, what if I use RTF format? The newer version of itext seems to have RTF api, but this 2.1.4 does not seem to have one. Please comment on this too.

Regards,
Amol
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
iText 2.1.7 (which you should use instead of 2.1.4) does have RTF capabilities, but it's in a separate jar file that can be downloaded in the same place as the PDF jar.

While iText does not have text output, there are various libraries that will extract text from a PDF, or you can create RTF thorugh iText - from which it's fairly simple to extract the raw text.
 
lekurwale amol
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ulf,

Due to some reasons, I cannot replace the jar file. Please let me know more about the liabraries which extract raw text from pdf. One more thing : The client requires text and not RTF.

Regards,
Amol
 
Ulf Dittmer
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Please let me know more about the liabraries which extract raw text from pdf.


The AccessingFileFormats page points to several such libraries.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic