Frequently Asked Question:
Relative path in linked file
in AddLinkToFile help I've found this explanation for file name:
FileName The path and file name of the PDF document to link to.
But in this way it's impossible to distribute PDFs to other machine (I need to maintain documents splitted into different file due to total dimension).
I've tested something like ../linkedTo.pdf with no success, any suggestion ?
TIA.
Hi,
The SetOutlineOpenFile has more info on this. Yes, SetOutlineOpenFile is for outlines/bookmarks, but how you construct the path to a file for AddLinkToFile is the same:
"Back slashes should be converted to forward slashes and the drive, if any, should be specified as just the drive letter between forward slashes without a colon. For example, the file "c:\my documents\hello.pdf" should be specified as "/c/my documents/hello.pdf". Relative path names are valid, including paths that include the ".." operator to move up a directory."