Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

How to support multiformat document view with the help of iText

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have read that with the use of iText tool by java one can view any document file. Anyone please help comments are appreciated.

 
Saloon Keeper
Posts: 7426
170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
iText is a library that can be used to create PDF files, nothing more, nothing less. Older versions of iText could also be used to create RTF and HTML, but that support fell by the wayside. It has no provisions for displaying anything.
 
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see a similar post

https://coderanch.com/t/560766/Struts/support-multiformat-document-view-help

Please use a single thread.
 
sanchit dua
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Akhilesh Trivedi wrote:I see a similar post

https://coderanch.com/t/560766/Struts/support-multiformat-document-view-help

Please use a single thread.



Ohh I felt that both are different topics having different approaches to solve a same problem.. I want to solve both the ways actually.
Never mind, I will do according to forum rules..
regards,
sanchit
 
sanchit dua
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:iText is a library that can be used to create PDF files, nothing more, nothing less. Older versions of iText could also be used to create RTF and HTML, but that support fell by the wayside. It has no provisions for displaying anything.




But I have to make use of iText since I've read from this link:http://static.springsource.org/spring/docs/2.0.x/reference/view.html
we can have non html output (pdf, rtf, etc .. with the help of this .. )
Please let me know how to basically implement this..
Or there is any other way out for providing the non html output at the browser (specially not in jsp) in Struts..

thanks and regards,
sanchit dua
 
Tim Moores
Saloon Keeper
Posts: 7426
170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you misunderstood that page; it says the same that I said - that you can use iText to generate PDFs. I don't even find "RTF" on that page. Once you understand enough of iText to create PDFs you should be able to use it in a Struts Action. There must be tons of Struts tutorials out there on the web that can teach you how to return binary data from a Struts Action, not least the actual Struts documentation.
 
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic