Skip to main content
Participant
April 22, 2020
Answered

Hyperlink to local files_Using a pdf instead of HTML

  • April 22, 2020
  • 2 replies
  • 936 views

Heya everyone,
for a small project, I am trying to avoid coding and would like users to be able to swift through documents using a pdf as index. Picture it like this:

  1. User receives a zipped Folder( Folder A) via Mail,
  2. unpacks it on Desktop,
  3. finds inside this a Folder B and a pdf.
  4. In the pdf, several links aim to
  5. documents inside Folder B.

Problem is, Acrobat Pro DC does not allow me to configurate the Hyperlink URL as I would probably need: file://C:/Users/username/Desktop/FolderA/FolderB/InterestingStuff.pdf  (that would be for windows). If the User do not use Windows but Apple or Linux, the link will not work. The link will also not work if the user move the folder somewhere else.

Is it something i could deal with using a Script?  I am literally starting to learn JS, so I feel it could be used for that. something like:" please open file x, which is in FolderB,  inside same FolderA as pdf."

Hope it is understandable. I appreciate any idea.

This topic has been closed for replies.
Correct answer try67

The links you create in Acrobat to another file are always relative, unless the target file is located on a different drive, even though they don't look like it. You can test it by moving the PDF to another folder. You'll see that all the links you created are automatically changed to reflect that new folder's location. And because the file-path syntax is not platform-dependent it should work on other operating systems, too (not on mobile devices, though).

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 22, 2020

The links you create in Acrobat to another file are always relative, unless the target file is located on a different drive, even though they don't look like it. You can test it by moving the PDF to another folder. You'll see that all the links you created are automatically changed to reflect that new folder's location. And because the file-path syntax is not platform-dependent it should work on other operating systems, too (not on mobile devices, though).

try67
Community Expert
Community Expert
April 22, 2020

Clarification: The above is only valid for links to files or pages, not URLs.

Bernd Alheit
Community Expert
Community Expert
April 22, 2020

For the links you can use the Link Action "Go to a page view".

Participant
April 22, 2020

Danke Bernd,
I'll try your solution when I get the time. Try67 precisions regarding relative path to files were enough for this one.
Cheers