These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

To pass handle of window(frameset) in which pdf is opened.

prawasini
Registered: Jul 3 2008
Posts: 7

Hi,

I am opening a pdf in a framset(blank asp page having a single frame). In the pdf there is a link of a site in which i have to pass the handle of the window in which pdf is opened.

Is there any way to pass the handle of the window in PDF is opened to the desired site thru the link present in PDF.

Please provide solution if any.

Rgds
Prawasini

My Product Information:
Acrobat Standard 7.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes and No. You can pass strings into a PDF from JS on an HTML page. So you could pass in the Window Name. The only way to open a URL from Acrobat into a named window is to use JavaScript in the URL. Is this what you are doing?

Take a look at this example:
http://www.windjack.com/WindJack/Browser2PDF/brwsr2acroJS.htm

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

prawasini
Registered: Jul 3 2008
Posts: 7
thanks thomp.
But the solution didn't work. Well let me put in different way.
I have a website thru which I open a pdf. Pdf is opened in a framset so that I can get its handle while opening it. In that pdf there is a link(of the same site, having some deviations). I can open multiple pdf frm that site.

Now the objective is, whenever, I click on a link present in pdf, it should get open over that window itself(that means a new window having behind window as a pdf).
And in my case it is opening over the last pdf window.
The reason behind it is that the latest pdf handle is present with me and all other handles are lost.

I tried on window.focus event to get the handle(self) but it didn't work for windows in which pdf gets opened.
Then I tried to open the pdf link thru ur solution, it didn't work.

The concern is why i dont get window.focus event activated when pdf is opened in the frameset.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I don't know the specifics of this kind of interaction between the browser and Acrobat. I think you need to do a lot of experimentation to see how all this works.

Good Luck

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script