Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Relative path in linked file

Question

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.

Answer

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."


© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum