Skip to main content
Participant
January 18, 2011
Question

How do I create a relative path to a .pdf in FrameMaker 7.1

  • January 18, 2011
  • 3 replies
  • 841 views

I need to create a link to a .pdf in FrameMaker 7.1. The first part will be the install path (which could vary depending on where the customer installed the product), but part of the link will always be the same (the directory where the .pdf is installed).

This needs to work on both Windows and UNIX operating systems.

Thanks.

    This topic has been closed for replies.

    3 replies

    Michael_Müller-Hillebrand
    Legend
    January 18, 2011

    Nameless new user,

    How do you plan to create such a link? I guess you will be using a Hypertext marker. For the path, just use forward slashes, they work with UNIX as well as Windows.

    - Michael

    Inspiring
    April 6, 2016

    Hi Michael,

    I'd like to ask you a related question on this topic of relative paths.

    I am using Framemaker 11. As an example, the absolute link is https://online.test.com/mds/support/contacts.html, but the root is going to change, so with the root being https://online.test.com, I go to Special->Hypertext and select 'Go to URL' I need to enter a relative link, so I enter: /mds/support/contacts.html. I tried it, converted my FM doc to webhelp via webworks ePublisher, and the link was dead. Apparently FM does not accept relative links, or does it? Am I doing this incorrectly? Do I need a different syntax? Or do I need to upgrade FM to get this option?

    Thanks for any help you may provide.

    Cheers,

    William

    Bob_Niland
    Community Expert
    Community Expert
    April 6, 2016

    /mds/support/contacts.html

    That's not a relative link. On Unix and Unix-like systems (presumably including iOS and Linux variants like Android), the leading slash means start at the root directory of the entire file system. On Windows, it might mean start at the root directory of the current logical drive.

    Try:
    mds/support/contacts.html
    or
    ./mds/support/contacts.html

    Keep also in mind that relative paths only work if the PDF is opened in a directory that is in an appropriate place in the filesystem hierarchy. That it works on the authoring PC doesn't necessarily mean that it will work when copied to your web server. And if people can right-click download it, you can be sure the links won't work on that end user's system.