• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

pdf hyperlink and CF

New Here ,
Nov 21, 2006 Nov 21, 2006

Copy link to clipboard

Copied

I am developing a coldfusion web application that contains a page displaying a pdf created in Autocad. The pdf contains a building's layout and a hyperlink has been created in each of the rooms containing the room number.

The question is - how can I get CF to:-

1) Detect the user clicking on the hyperlink in the pdf
2) Pick up the room number contained in the hyperlink
3) Prepend the correct forwarding page information in front of the room number
4) Get CF to then navigate to that page (in the same window)

I do not want to hard code the full URL into the pdf hyperlink as the system may move servers etc in the future.

Hope this makes sense!

Regards

Owen
UK
TOPICS
Advanced techniques

Views

331

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 08, 2007 Apr 08, 2007

Copy link to clipboard

Copied

I think the problem might be that PDF's are opened locally from the client so there is no context to resolve a relative URL.

Suggestion:
Dedicate a domain name to the location of your .cfm page and hard code that URL into the PDF hyperlinks. If the system changes servers, just remap the domain in the DNS to point to the new location.

Hope that helps.
Paul

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 08, 2007 Apr 08, 2007

Copy link to clipboard

Copied

LATEST
The following 3 files should answer your questions.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation