IE6 and pdf internal links not working

J

jcfiala

Hi. It's an odd problem I'm having, and I can't figure out what's
going wrong. Plus, I can't seem to phrase the problem well enough to
find any solutions in google. I would appreciate any suggestions you
can give me.

I've got a pdf file that has external relative links in it to other pdf
files that exist in sub-directories under the menu pdf. These file are
possible to go to by direct links - if I click on
http://localhost/..../Test1/Test1.pdf, it opens just fine. If I click
on http://localhost/.../Menu.pdf, and then click on the link to
Test1/Test1.pdf, it complains that the file isn't a valid pdf... but if
I take the option to save it to disk, the file saves fine and opens
fine in acrobat reader.

However, this all works fine when I test in Firefox - nothing else
changed, I go to http://localhost/.../Menu.pdf, and are able to click
through to Test1/Test1.pdf without any problems.

I can't figure out what the difference is between IE6 and Firefox that
prevents IE6 from following the external links in the pdf properly.

Are there any suggestions? Has someone seen something like this
before?

Thanks a lot.
 
R

Robert Aldwinckle

Hi. It's an odd problem I'm having, and I can't figure out what's
going wrong. Plus, I can't seem to phrase the problem well enough to
find any solutions in google. I would appreciate any suggestions you
can give me.

I've got a pdf file that has external relative links in it to other pdf
files that exist in sub-directories under the menu pdf. These file are
possible to go to by direct links - if I click on
http://localhost/..../Test1/Test1.pdf, it opens just fine. If I click
on http://localhost/.../Menu.pdf, and then click on the link to
Test1/Test1.pdf, it complains that the file isn't a valid pdf... but if
I take the option to save it to disk, the file saves fine and opens
fine in acrobat reader.

However, this all works fine when I test in Firefox - nothing else
changed, I go to http://localhost/.../Menu.pdf, and are able to click
through to Test1/Test1.pdf without any problems.

I can't figure out what the difference is between IE6 and Firefox that
prevents IE6 from following the external links in the pdf properly.

Are there any suggestions? Has someone seen something like this
before?


Try the adobe forums?
 
J

John Fiala

Robert said:
Try the adobe forums?

I probably will - I've found some google hits and tried what they
suggest, although none of them have fixed the problem. It's just odd -
things work fine in firefox and adobe, but don't work fine in IE and
adobe. :(

John
 
J

John Fiala

Hi folks.

I found out what I needed - in my php file, I needed to include:

header('HTTP/1.1 200 OK');
header('Status: 200 OK');
header('Accept-Ranges: bytes');
header('Content-Transfer-Encoding: Binary');

Along with the headers I had:
header('Content-Type: application/force-download');
header('Content-Disposition: inline; filename=text.pdf');

So - there's the solution. Have a nice day!

John
 
R

Robert Aldwinckle

John Fiala said:
Hi folks.

I found out what I needed - in my php file, I needed to include:

header('HTTP/1.1 200 OK');
header('Status: 200 OK');
header('Accept-Ranges: bytes');
header('Content-Transfer-Encoding: Binary');

Along with the headers I had:
header('Content-Type: application/force-download');
header('Content-Disposition: inline; filename=text.pdf');

So - there's the solution. Have a nice day!

John


Thanks for sharing your solution.
I think that Content-Disposition: header may be what another user
having a different problem may need to know about too.


Robert
---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top