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

pdf link to another pdf's destination

brookwood
Registered: Jun 25 2008
Posts: 4
Answered

Hi,

It's an issue about "#" and "%23".

I have a pdf link with action = Run a Java Script. The Script is to
1) Open another pdf in another new browser (IE) window.
2) Point to the right "page" or "destination" in that new opened pdf.

The script I used in my test1.pdf is:
app.launchURL("http://mycompany.com/test2.pdf#page=2", true)

The problems are:
It works perfectly on my laptop, however, it doesn't work for my boss's laptop, what he got on his IE7 browser is "the page can not be found" and the address showing

http://mycompany.com/test2.pdf%23page=2

I don't know why this "%23" is on my boss computer while not on my computer, it is http://mycompany.com/test2.pdf#page=2 on my computer and it works fine to me.

Can somebody tell me what's wrong with my boss's computer?

I also tried adding encodeURI and with no luck.

Is it something to do with the setup? both my boss and I have same IE7 and Adobe Reader 8 and why IE on my laptop showing "#" and on my boss' showing "%23", how to fix that?

Thanks for your inputs

-Zhun

My Product Information:
Reader 8.1.2, Windows
jbfreels
Registered: Feb 19 2008
Posts: 63
It should still work.

"%23" is simply the URL escape sequence for a hash.

http://www.dwfaq.com/tutorials/miscellaneous/special_links_encoding.asp
brookwood
Registered: Jun 25 2008
Posts: 4
Thanks JBFreels,

My problem is the IE will not find the pdf file and displaying "can not find page" when displaying %23.

On my laptop, it displays # and works fine.

It confused me that why it works differently on 2 computers?

I also tried my home computer(not office laptop) and it doesn't work either and in the IEaddress it diplaying %23

-Zhun
jbfreels
Registered: Feb 19 2008
Posts: 63
The only other thing I can think of would be to use another browser to make sure you can access it from another computer (FireFox, Opera...).

If you can get it to work in another browser, then (long shot) check your Phishing Filter settings. The phishing filter in IE will replace items in URLs that it finds suspicious. I DOUBT this is the problem, but I don't know what else for you to check.

Also, try simply "http://mycompany.com/test2.pdf#2". That has the same effect on my machine (going to page 2 in the document).

-jb