Opening PDF in a JPANEL or JFRAME, in same parent window

Hi,I need to Open a PDF File in my current window, no pop-ups.Can anyone help me for this. It should be in one of the Panel.I tried Runtime.getRuntime().exec() but it is openning in a diff window that is not desired.Please send some advice.Regards,
[290 byte] By [JAVA_DUTTa] at [2007-11-26 12:40:43]
# 1

http://www.pdfbox.org/

You can use pdfBox to render onto a AWT graphics surface. It is open source, and there are a lot of things not-yet-implemented and errors all over the place. It is the only free solution that I could find.

I actually had to patch his code a bunch to make it work for my needs. I submitted those patches to the project manager, but he has yet to get back to me.

Feel free to post here if you have any problems.

-Js

JSnakea at 2007-7-7 16:12:36 > top of Java-index,Desktop,Core GUI APIs...
# 2
As an alternative, you could use GhostView (or GSView) to convert the pdf to a form that you can load into your panel. There are a number of alternative formats they can produce. http://www.cs.wisc.edu/~ghost/gsview/index.htm
ChuckBinga at 2007-7-7 16:12:36 > top of Java-index,Desktop,Core GUI APIs...