Solved

Links in Embedded PDF

Posted on 2003-12-09
5
255 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

831 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