My company wants to set up some PDF documents to track projects. We want to create links inside the PDF that, when clicked, open a given document (.doc, .xls etc) using a relative path.
There is the app.openDoc JavaScript method, however that only works for PDF files.
There is the "Open a file" action, but that seems to work for only absolute paths.
I've looked into the API ( http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf ) to no avail ... does anyone know how to do this?
The doc object has no such method, but you can do the following:
As an alternative, you can also use the util.readFileIntoStream method in a closed environment where you can install folder-level scripts on everyone's system.