display Pdf report on Frame using iText library
Hi,
I am able to generate pdf reports using iText library. but i want to display these generated pdf into frame. can u please help for this.
this is web based application. Through servlet i am generating the pdf report using iText library. I am waiting for your reply ....
[291 byte] By [
kagitalaa] at [2007-11-27 11:48:00]

Google: java send file pdf
There are many examples, even in the iText web site:
1- http://itextdocs.lowagie.com/tutorial/general/webapp/index.html (iText)
2- http://www.java2s.com/Code/Java/Servlets/Send-File.htm
Hope That Helps
He doesn't need iText. He needs to have a clue about what he's doing, like the ability to distinguish between Java, HTML, server and client.
All he needs to do is to make sure he serves a webpage that has a frame, whose content (target URL) is the PDF. Whether that's served from the webserver or using a servlet doesn't matter here at all.
If the servlet produces the PDF upon a request, so be it. But this is really not a Java problem.
Does this PDF file absolutely need to be displayed within a JFrame? You say you are generating this document on the server side, so if this is a web application, what I might do is place the generated document on directory accessible through http, then on the client browser side open a pop-up browser window with a URL to the PDF document.
Most browsers have a PDF viewer plugin of some kind.
If this is a swing application then you can do the same thing but instead of redirecting the browser to the PDF file you can use iText to convert the PDF document to an RTF document and use an RTFEditorKit within a JEditorPane to display the same document in RTF format.