High Definition eLearning
Welcome guest, is this your first visit? Create Account now to join.
  • Login:

Welcome to the Lectora and CourseMill Forums

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Launching a PDF

  1. #1
    Course Developer/LMS*****
    Join Date
    Jul 2010
    Location
    Spartanburg, SC
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Launching a PDF

    I am trying to create buttons to open PDF documents that I have added to the course. I am using the following Action, On Click - Launch a program/document - Use Attached File - Attached File: xyz.pdf .
    In test this works correctly. When I publish it to SCORm my links open the PDF in the same window as the course and not a new window. This essentially will kick users out of the course when they open a PDF document. I can’t find a place to specify to open in a new window. (I have checked all my IE settings.)

  2. #2
    Member
    Join Date
    May 2009
    Posts
    87
    Thanks
    0
    Thanked 13 Times in 12 Posts

    Default

    Hi Evelyn,

    Instead of using "Launch a program/document", use "Go To", select "Web Address" as your target and input the exact filename of your PDF as the address you want to open. Now you will be able to set it to launch in a new window. Just make sure your PDF is still attached to your title as an external file.

    Why does this work? The "go to web address" action accepts both absolute and relative URL paths. For example, if you put "http://www.mywebsite.com" in the web address box, it would take you to mywebsite.com, but if you put 'images/myBackgroundImage.jpg' it would look in the images folder of the published course to open a file called "myBackgroundImage.jpg". Because the external PDF lives in the root folder of the published course, you need only input the filename and the course will find and launch it.
    Last edited by eLdev; 07-23-2010 at 11:57 AM. Reason: more info

  3. The Following User Says Thank You to eLdev For This Useful Post:

    jcereske (08-10-2010)

  4. #3
    Member
    Join Date
    Apr 2009
    Location
    Arlington, VA
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You could try this;
    On: Mouse Click
    Action: Go To
    Target: Chapter, Page or Section
    Name: Page 1
    Check the Open in New Window box

  5. #4
    David Steffek
    Join Date
    Sep 2009
    Location
    Omaha, NE
    Posts
    163
    Thanks
    5
    Thanked 35 Times in 34 Posts

    Default

    I've not tried eLdev's solution, but I'm definitely going to give it a try the next time I need it!

    What I've done in the past is create a separate page to open the PDF. (I think this is what SteveR was indicating as well.)

    So let's say I create a page called PDFpage. I set my Launch Document action to be on the PDFpage as an On Show action. Then on the button to show the PDF, I set it to Go To PDFPage, Open in new window.

    This way, when the user clicks the button it opens the PDFpage in a new window and then automatically loads the PDF in that window.

  6. The Following User Says Thank You to DavidS For This Useful Post:

    jcereske (08-25-2010)

  7. #5
    Ben Pitman aka Dr Lectora
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    5,948
    Thanks
    7
    Thanked 271 Times in 265 Posts

    Default

    I HIGHLY recommend eLdev's solution. It is THE way to go.

  8. The Following User Says Thank You to benpitman For This Useful Post:

    jcereske (08-10-2010)

  9. #6
    jacereske
    Join Date
    Jul 2008
    Location
    San Francisco, CA
    Posts
    11
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Using eLdev's solution worked great in my course.

  10. #7
    blucero
    Join Date
    Sep 2006
    Location
    Colo Spgs, CO
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem Launching PDF in Lectora X

    I've tried eLdev's suggestion for launching a pdf doc with no luck after publishing to exe. Appears to work in html. I've added the document from the Title Properties/Additional files tab. I then went to the page where I have a button for launching the PDF doc. When I run the title, I get the following: Server not found. Firefox can't find the server at t_d_manual_june2010.pdf. The Web address is the exact name of the PDF file. Any reasons why this isn't working? Thanks!
    Last edited by blucero; 09-03-2010 at 11:49 AM. Reason: Extra words not needed.

  11. #8
    Ben Pitman aka Dr Lectora
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    5,948
    Thanks
    7
    Thanked 271 Times in 265 Posts

    Default

    You can't just Run the title. You need to publish it to HTML and click the Preview button.
    New Jan 19: Free Chapter of Designing Effective eLearning: A Step-by-Step Guide from Amazon

    cheers, ben -- aka Dr. Lectora: Lectora Resources & Services

    678-571-4179 - ben.pitman@eProficiency.com

  12. #9
    Member
    Join Date
    Nov 2008
    Posts
    54
    Thanks
    2
    Thanked 8 Times in 8 Posts

    Default

    Quote Originally Posted by benpitman View Post
    You can't just Run the title. You need to publish it to HTML and click the Preview button.
    I think the issue she's having is that she needs it to compile as a .exe, not html.

    Solution:
    Create a new "hidden page" -- Personally, I'd create a different chapter for it.

    Page: Name -- [yourpdfpagename]

    Action: launch PDF
    On: Show
    Action: Launch a program/document
    Use Attached file (check this box)
    Add file (your file you want to show)

    **start edit**

    Action: closeThisWindowOnPDFLaunch
    On: Show
    Action: Exit Title/Close Window

    **end edit**

    Now that you've done that, go to your button that doesn't work now.
    Modify the Action/On Click
    Action: Go To
    Target: Chapter, Section, or Page
    Name: [yourpdfpagename]
    Open in New Window (check this box)

    The issue is that by using HTML -- even though you were using relative links, Lectora was appending "http" at the front, breaking the link.

    Hope that helps!
    Lisa

    **edit description**

    Of course, you're layering "windows" now -- so having the extra "launch" window up is cumbersome. Add this action to close this extra window once the PDF is launched. This way, once the learner closes the PDF, they will just see the page they launched it from.

    Finally, you might consider making the physical size of that page very small -- like 1 px by 1 px to be less distracting to the learner.
    Last edited by lrichmtg; 09-03-2010 at 05:45 PM.

  13. #10
    Ben Pitman aka Dr Lectora
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    5,948
    Thanks
    7
    Thanked 271 Times in 265 Posts

    Default

    I was able to successfully launch the PDF in a .exe putting the Launch action on the original button, not having to set up a separate page.
    New Jan 19: Free Chapter of Designing Effective eLearning: A Step-by-Step Guide from Amazon

    cheers, ben -- aka Dr. Lectora: Lectora Resources & Services

    678-571-4179 - ben.pitman@eProficiency.com


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Lectora and CourseMill are registered trademarks of Trivantis Corporation, Camtasia and Snagit are registered trademarks of TechSmith Corporation and
Flypaper is a trademark of Flypaper Studio. Camtasia and Snagit are used with the permission of TechSmith Corporation.
Copyright © 1999-2012 Trivantis Corporation Inc. All rights reserved.