Solved

Links in Embedded PDF

Posted on 2003-12-09
5
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

691 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