Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2003
    Posts
    2

    PDF links don't work

    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?

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    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

    Code:
    File.Open(_SourceFolder.. "\\PDF\\myfile.pdf", _SourceFolder.. "\\PDF", SW_SHOWNORMAL);
    output enhanced with AMS Code Pretty

    hope that helps
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. Presentation CD Ideas - PDFs
    By iainfitzy in forum AutoPlay Media Studio 6.0
    Replies: 12
    Last Post: 08-17-2006, 07:35 AM
  2. Opening an Adobe Acrobat PDF Document
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 01:30 PM
  3. opening a pdf file to a specific page
    By Jaegergirl in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 06-17-2003, 10:52 AM
  4. Flash Object links to PDF not working prop.
    By ajones14 in forum AutoPlay Media Studio 4.0
    Replies: 6
    Last Post: 05-30-2003, 11:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts