Jump to content


Photo

Unable to link tot page within pdf in IE from cd-rom


  • Please log in to reply
1 reply to this topic

#1 nanijds

nanijds

    Young Padawan

  • Members
  • Pip
  • 8 posts
  • Gender:Male

Posted 01 July 2011 - 01:20 AM

Hi there,

I encounter a strange problem with IE 6 and 7. From an ordinary html page I link to different pages within a pdf document.
Something like: <a href="pdf.html?page=15" target="_blank">This is the page you are looking for</a>

When I access the html page on a local server, the links to the pages in the pdf work OK.
But when I access the very same html copied onto a cd-rom, all links direct me to the first page of the pdf.

The only difference is the fact that all data are on cd instead of a server.
FF doesn't have this problem.

Anyone an idea?


#2 Demonslay

Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 973 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 21 August 2011 - 12:54 PM

I'll be honest, I didn't even know you could do that. :blink:

According to Adobe's specification page, you need to structure your link using a hash instead of a question mark; so in other words, page.pdf#page=15.
I also find it odd that you have "pdf.html". I could see this causing a MIME confusion for the browser.

If changing the query character and the extension of the file doesn't help, I would suspect it being a bug with IE related to a security policy. Those are ever so common when dealing with IE. IE is the devil to web developers. :swear:

I did find this snippet to sound related.

Note: If you use UNC server locations (\\servername\folder) in a link, then set the link to open to a set destination using the procedure in the following section. If you use URLS containing local hard drive addresses (c:\folder\), then you cannot link to page numbers or set destinations. With Adobe Acrobat 7.0 products, a link to a page number only works if you use HTTP or HTTPS locations. UNC server locations will only work if you use the set destinations method outlined in the following section of this document.


Sounds like a security thing with Adobe Reader itself. It basically says you cannot do this locally, like C:\folder\page.pdf, but it can only work by accessing it through a server, like http://site.com/page.pdf.

I also found a page specifying that IE sucks for this, straight from Adobe.

This function works in Mozilla FireFox, but not in Microsoft Internet Explorer.
...
In Acrobat 7.0, the integration path between Microsoft Internet Explorer and Adobe Acrobat products was changed. Unfortunately, those changes affected how Microsoft Internet Explorer sends string information to the Acrobat browser plug-in specifically when using server or local file URLs.
...
Solution 3: Use a different web browser.
If you are using a local hard drive address in the hyperlink (c:\folder\folder\), then use Mozilla FireFox web browser instead of Microsoft Internet Explorer.


I do notice these pages refer to Adobe Reader 7. The latest version is 10.1, so I would make sure you have the latest version and give that a try possibly.


Resources:
Adobe TechNote 317300
Adobe TechNote 326332

Edited by Demonslay, 21 August 2011 - 12:55 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users