Solved

Links in Embedded PDF

Posted on 2003-12-09
5
227 Views
Last Modified: 2010-04-09
Hello,

I am working with a website which contains a PDF file embedded in an HTML document, using the <embed> tag.  The PDF document opens up nicely within the HTML document as it should, but the links within the PDF document don't work.  If I click on any of these links, I get a "Page not found" error.

Is there any solution to this?  I don't think there is, but I was hoping someone here might have a definitive answer, as I'm wasting a lot of time trying to find a solution which I don't think exists.

Thanks in advance for any advice.
0
Comment
Question by:missmikey
  • 3
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
pepsichris earned 125 total points
ID: 9903390
The easiest way is to use complete links, eg

http://www.yoursite.com/thelink.html

otherwise you have to fiddle about with where it's all relative to (which'll probably be the html page) so when you get the Page not found message, do a right click and go to properties, or use the File menu to get them or whatever, and work out where it's looking at, and adjust your code accordingly.
0
 
LVL 9

Assisted Solution

by:pepsichris
pepsichris earned 125 total points
ID: 9903397
Also, a quick fix might be to put the pdf document in the same directory as the html page.
0
 

Author Comment

by:missmikey
ID: 9904107
Thanks for your comment, pepsichris.

Are you saying that I would need to change the links in the PDF file, so that they always start with "http://"?  Because that's what the Adobe website seems to be indicating also.

When I checked to see what one of these links looks like, as you suggested, I found this:

res://C:\WINNT\system32\shdoclc.dll/http_404.htm#http://10.12.29.136:8088/cl_app/pem/cda/dtsc/v_1.0/gbr/cl_app_pem_cda_dtsc_v_1.0_gbr_mieux_connaitre_g/ORGA_Monetique_et_Securisation.pdf

Can't even begin to understand this link (I mean the part before the IP address), but I can tell you that it works when the PDF file is opened alone in the browser, i.e. not using the embed tag.  Does that make sense?
0
 

Author Comment

by:missmikey
ID: 9904132
Actually disregard that crazy post, pepsichris, I think I've found the answer to my question... thanks!!
0
 
LVL 9

Expert Comment

by:pepsichris
ID: 9904223
Cool - if not then come back...
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now