PDA

View Full Version : PDF links don't work


Nicvan
05-01-2007, 01:13 AM
I have been using AMS 4 for a long time and have just upgraded to AMS 6 mainly to creat Vista compatible software. I use PDFs which I call from an AMS 6 page. These PDFs contain buttons which perform certain actions within Acrobat, for instance to play a sound file. The sound file is in a different directory to the PDF and is linked accordingly. I now find that because AMS 6 places a copy of the PDF in the DOCS folder of the Autoplay folder and opens that file, the link I created within the PDF no longer works as the path no longer is accurate. Is there anything that can be done to run or open files from their position in my project instead of the copies?

RizlaUK
05-01-2007, 06:54 AM
enter the path to the pdf file manually, whenever you use the file explorer ams will automatically add the file to the project

you can get the path to the project folder using "_SourceFolder"

so, for example, if you have your pdf files in a directory within the project called "PDF" then you would use something like this


File.Open(_SourceFolder.. "\\PDF\\myfile.pdf", _SourceFolder.. "\\PDF", SW_SHOWNORMAL);

output enhanced with AMS Code Pretty (http://www.indigorose.com/forums/showthread.php?t=19409)

hope that helps