Skip navigation
Marta15
Currently Being Moderated

Links to PDF files with relative paths from a Captivate 4 project

Apr 1, 2010 8:23 AM

I'm creating a presentation in Captivate 4 (I'm making an exe file) with some links to PDF files; the links are buttons with the 'open URL or file' set. The presentation will be distributed in CDs and obviously the links will not work for they point to an absolute path in my PC. Is there another way to display external files? thanks

 
Replies
  • Currently Being Moderated
    Apr 1, 2010 9:38 AM   in reply to Marta15

    Hello,

     

    Please could you check the version number of Captivate? Perhaps you did not install the update (May 2009) yet? Try menu Help, Updates. One of the issues resolved was about paths.

     

    Lilybiri

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 3, 2010 10:10 AM   in reply to Marta15

    Do not use relative paths in the "url or file" field. Simply type the name of your file you want to link to.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 20, 2010 7:00 AM   in reply to Marta15

    Can anyone list the steps to take when using a button to open a file? I have Word, Exel, and PowerPoint files I want to link to. Do I need to convert to html and put them in the project folder? Please help. Captivate 4 Help is no help with this.

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2010 5:13 PM   in reply to Marta15

    I have encountered the same problem.  I created a project that had buttons linking to multiple external assets, in multiple file formats (pdf, swf, doc, and xls). When publishing the file to CD-ROM (using an exe output format with an Autorun), I could not get Captivate to recognize the "relative" paths to the asset files. Paring down the file path to the file name only, as some forums suggested, did not help--in such instances, Captivate couldn't recognize a file name without a path; assumed that I must want a URL; and added "http://" to the file name so when I clicked on buttons in the exported project I instead got a browser window with an error message.

     

    After hours of trial and error, I figured out that adding "file:/" before the name of the file seems to tell Captivate to look in the root directory. I know this because when I tested the project within Captivate, I was able to confirm that button clicks were now pointing to files in the root of my C: drive, so the project worked when I copied files there. However, this success didn't translate to a published exe file that now should be looking within the root of D: (or whatever letter your CD/DVD drive is).

     

    Adobe, if anyone is listening, my own suggestion is that there be independent choices for "Open URL" OR "Open File" under the "If the user clicks on the button" pull-down menu, rather than "Open URL or file," as Captivate seems to incorrectly assume URL as the default.  Secondly, the program should be able to intuitively recognize the relative paths to external assets accessed as a result of button clicks.

     

    In the meantime, if anyone else has a better workaround than I was able to come up with, I'd love to hear it.  Thanks.

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2010 6:49 PM   in reply to Cap\'nCretin

    Correction to my last messsage:  it should have been "file:\" with a back slash rather than a forward slash.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 22, 2010 1:01 PM   in reply to Cap\'nCretin

    In CP5 trying to link to multiple PDF files (articles) have not been able to get CP5 to locate these PDF resources in the project folder so

    will try the file:\  convention and see if that resolves the issue

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 27, 2010 5:18 AM   in reply to Marta15

    I've done my Portfolio in Captivate, output .exe and burn into CDrom (with a lot of link pdf and avi need to be opened).

     

    Before Adobe Captive 4,
    We use a very complicated method to let our "Open File(pdf,doc...)" work when we output to .exe and burn into CDrom.
    We used "MENU BUILDER" to do a swf which embedded a relative path of the file, and add the swf into Captivate.
    (If u are a new user begin from Captivate 4, just ignored the History, just toooo complicated. BUT IT WORKS FINE.)

     

    Now the MENU BUILDER missing from Captivate 4,
    after searching the forum,

    I've tried to put the file name only (no path at all, example: "leaflet_03.pdf) under "Open Url or file" and get the results:

    1. It could not open when i test to preview in IE in my computer.
    2. It works fine when I upload the swf ouput and pdf files (put all in same folder) to website.
    3. It won't work when I Output to .exe (put all file in same folder), burn into CDrom also failed to open! The pdf file is opened in Internet explore with "http://leaflet_03.pdf/" in address bar.

     

    I've tried to put "file:\" infront of the link (example: "file:\leaflet_03.pdf"),it won't work too!

     

    Please tell me how to solve this problem!
    Thanks~!

     

    Lulu
    Malaysia

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 12, 2011 11:28 AM   in reply to Lulu_Malaysia

    I am having the same trouble!  It only works when i have the absolute path.

     

    I am new to all of this so please forgive my basic questions. In one of teh posts it said to use "file:\name of file" are the quotes around the path needed?

     

    Thanks!

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 12, 2011 12:23 PM   in reply to robert kirkwood

    No, do not put those quotes,

     

    Lilybiri

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 12, 2011 12:58 PM   in reply to Lilybiri

    Ok.

     

    I have a word document named "test.docx"

    The document is saved in this directory "c:\TEMP"

    The project is saved in the same directory and it is named menu.cptl

     

    here is the path i have set up in my project for a button: "file:\TEMP\test.docx" (no quotes as you specified)

     

    when i run it and click on the button nothing is happening.

     

    So what am i doing wrong?

     

    Thanks for any help!

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 12, 2011 1:09 PM   in reply to Lilybiri

    i figured it out. i had a slide in there that was a copy of teh 1st slide with the old path in it. somehow it was trying that one

    first. thanks for the help on this!

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 14, 2011 12:30 PM   in reply to Lilybiri

    The paths are working on if i have it local. i burned the project to a CD and any links go directly to my

    home page. i copied all of the files from the CD to the hard drive of another computer and it works just fine. Any suggestions?

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 14, 2011 7:01 PM   in reply to robert kirkwood

    It sounds like your issue is due to absolute link URLs.

     

    Have you tried using relative links instead of absolute links?

    E.g. "c:\TEMP\myfile.pdf" is an absolute link, whereas if you placed the PDF file in the same directory as the HTM file and just used "myfile.pdf" that would be a relative link.  If you placed the PDF inside a directory called "pdf" which was in the same directory as your HTM your relative link would then be "pdf\myfile.pdf".

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 17, 2011 2:08 AM   in reply to robert kirkwood

    Hi There,

     

    If your issue is still not resolved, I would advise you report this issue and send us.

     

    -Manish

    blogs.adobe.com/captivate

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 17, 2011 9:10 AM   in reply to RodWard

    Rod,

     

    I am using relative paths. i am now practicing using a flash drive.

     

    all the paths are "file:\file folder\filename"

     

    there is no drive name associated. It worked when i had the folder on the C: drive but when i put it on teh flash drive it doesnt work...

    screen1.jpg

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 17, 2011 9:21 AM   in reply to Marta15

    it works when i export to an SWF and run the htm file. but its the export to executable that isnt working now...

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 17, 2011 10:25 AM   in reply to robert kirkwood

    "file:\file folder\filename" is not a relative path.  It's still an absolute path because you're specifying the path all the way from the root drive, whether you used a drive letter or not.

     

    A relative path shows where to find the other file in relation to the file that is calling it.

    Relative paths look like this:

    • myDoc.doc (if the file is in the same directory as the file calling it)
    • folderName/myDoc.doc (if the file is inside a folder in the same directory as the file calling it)
    • ../myDoc.doc (if the file is located in the parent directory above the file that is calling it)
    • ../../myDoc.doc (if the file is located two levels above the file that is calling it)
    • etc

     

    Here's a tutorial that explains it better: http://www.communitymx.com/content/article.cfm?cid=230ad

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 18, 2011 1:15 AM   in reply to RodWard

    I've tried to set every kind of link, but the problem still cannot solve:

    1. when output to EXE, cannot open a file, when we click the button, no software (ie or acrobat reader) running.

    2. when we output to SWF, with HTML, we can open the file under ie.  But if we lauch the SWF directly (not using html or ie), the button have same problem just like output to EXE, nothing happen when we click the open file button.

     

    So I think the problem is related to IE or any other web browser,

    the web browser cannot generate to run acrobate reader or microsoft word to open those file!

    So any other suggestion?

     

    I've uploaded the testing CP file and output exe/swf file into this link:

    http://designcall.me/goh/Captivate_5_Testing.zip

     

    I think we should solve this problem,

    otherwise we cannot take a risk to get a job from clients...

    Thanks again for your help!

     

    Lulu

    Malaysia

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 6, 2011 9:00 PM   in reply to Marta15

    Hi LuLu,

     

    did you ever solve this problem. I have the same problem, although I'm using Captivate 5.

     

    I can link to an external file on the CD with a relative path ../../../filename.htm when I export to a Mac executable file, but not a .exe file.

     

    (It took some trial and error to work out with the Mac the path had to go up three times, but no amount of guess work with relative paths seems to work for the .exe

     

    Any suggestions anyone?

     

    Thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 7, 2011 7:51 AM   in reply to Marta15

    I hate to tell you this, but I went through this same situation over a year ago when we purchased CP4.  Unless you have Menu Builder, or Adobe develops something similar to resolve this issue, you will not be able to open pdf or other files when a project is burned to a CD, regardless of the path.  If someone can prove me wrong, that would be great, but it was a very frustating process for me as well, and after spending endless hours trying all types of paths, it was obvious that it was not happening.  I reported this to Adobe when I discovered it, and the adjustment was not made in CP5.  Apparently Menu Builder was included in the earlier versions of Captivate when it was still a Macromedia product and when Adobe acquired it, they thought that Aggregator would replicate Menu Builder's capabilities.  Unfortunately, they were not aware of how critical it is for those of us who are still required to burn projects to CDs for our clients to open other files.  That "Open URL or file" option is a joke when it comes to EXE file publishing.  Hopefully if more people complain this issue will finally get resolved and a solution will be provided in CP6.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 7, 2011 8:27 AM   in reply to L-3-tech

    Too bad! I wonder why they dont build it in to Flash

    Catalyst? Seems like the logical way to go...

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 7, 2011 12:31 PM   in reply to L-3-tech

    Thanks! That will at least save me some time!

     

    It does work when I create the Mac version of a .exe, so I'm not sure why it won't with the .exe

     

    I'll make mention of it to Adobe.

     

    Cheers!

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 8, 2011 8:04 AM   in reply to Marta15

    I used Captivate from version 0 till 5!


    I've tried every kind of path name and every kind of method metion above, but still couldn't let the stupid link open a PDF/Doc/Mpeg when I output to .exe!
    I really doubt those "Captivate Expert" had REALLY USED the programme and output .exe and burn into CD and click and open a external doc before!

    Now I'm using a stupid method to make it work.
    I used Sothink decompiler to copy the script inside SWF link which created by Old Captivate 3 Menu Builder, and paste the script into Flash, change the file name and import the SWF into Captivate to become a Click box link.(If u don't understand what I'm talking about,is because u start using Captivate from version 4).

    I will try using Flash Catalyse to do a link, hope this will really works!
    I just can't figure out why this tiny little problem will jam the whole programm and Adobe still couldn't solve for nearly 5 years?

     

     

    This is the action script inside the empty SWF link box,
    just change the file name and put the PDF inside same folder with .exe file will work:

    _______________________________________________

     

    // Action script...

    on (release)
    {
        var szArg = "filename.pdf";
        var szWindow = "_blank";
        if (_root.FlashPlayer == "1")
        {
            getURL("FSCommand:execfile", szArg);
        }
        else
        {
            getURL(szArg, szWindow);
        } // end else if
    }

     

    ____________________________________________

     

    Lulu

    Malaysia

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 14, 2011 5:03 AM   in reply to Marta15

    This is the most ridiculous thing I've ever seen!  What a piece of crap.  Same problem.  No resolution.  You should be ashamed, Adobe!

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 17, 2011 6:49 AM   in reply to Marta15

    Hi There,

     

    I was really struggling to sort this out to run the pdfs through a captivate .exe file on a DVDrom- but I have sussed it out.

     

    Firstly- Create a folder with all the pdfs you are planning on using. (foldername)

    Put this folder onto the disc but do not burn it

    Name the disc

    In captivate- direct the 'url or file' link to \foldername\filename.pdf

    then publish the captivate project to you computer

    Copy this onto the disc in the same place as 'foldername'

    Copy the 'autorun' to the same place

    Burn the disc


    note: name the disc the same everytime otherwise it gets confused

     

    as long as the .exe is in the same place as the pdf folder then it will find it

     

    Took it's time- but I'm a happy man

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 17, 2011 7:15 AM   in reply to CliffCODE

    Hi,

     

    I'm confused about one thing.  How do you name the disc in Captivate?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2011 5:22 PM   in reply to L-3-tech

    Why cant we just place the PDF into the library and link to it link you do in Dreamweaver, would make life so much easier

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2011 5:45 PM   in reply to matt_pir

    Hi there

     

    Because in Dreamweaver the library is simply a representation of all the files on the site. In Captivate, the library shows many of the objects that are inside the project and will end up encapsulated inside the SWF.The SWF file size would then dramatically increase and slow down the ability to play easily.

     

    Cheers... Rick

     

    Helpful and Handy Links

    Captivate Wish Form/Bug Reporting Form

    Adobe Certified Captivate Training

    SorcerStone Blog

    Captivate eBooks

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2011 7:25 PM   in reply to Captiv8r

    Im placing my project into scorm, I takeit I need to place all docs inside the LMS the link to the absolute path to the PDF or doc?

     

    Question. Is there a simple way to make a scrolling text box to place into CP? I've tried with flash and XML AS3 no luck, I need to incorporate  formatted text.

     

    Any help suggestions would be great.

     

    Thanks Captiv8r just purchased your books. look forward to learning.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points