Skip to main content
Marko Stojkovski
Known Participant
February 20, 2017
Question

Print slide as .pdf from a HTML5 project

  • February 20, 2017
  • 2 replies
  • 1444 views

Hello. I need to print a particular slide from a project. I tried the window.print(); command but I receive the printing dialogue and the default is portrait printing, but the users of the course may be not familiar with print so leaving options for them to print is not the best solution.
I have tried the Intelligent Print Widget (Intelligent Print Widget for Adobe Captivate | CP Guru - Adobe Captivate Widgets ) and that is the perfect solution for my problem, the only problem is that it does not work on html5. So, I need the same functionality, but to work with HTML5.
Hopefully somebody had similar problem and is willing to share his/her experience how to solve this?
Thank you.

    This topic has been closed for replies.

    2 replies

    Inspiring
    June 8, 2018

    Is this a static slide? If nothing changes in it during the course, you could create a duplicate of the slide, save it as a landscape PDF and link it to the course as a PDF document that displays on a button click, but in a new window. Then users could print it from it's own window. OR, if your audience uses Chrome, force all printing from the course to be landscape by putting the following between the <head>  </head> tags of the index.html file of the course after publishing (not working in Firefox; IE and Edge still default to portrait). You still need your window.print(); statement as the action to your PRINT button:

    <style type="text/css" media="print">

    @page

    {

    size: landscape;

    margin: 2cm;

    }

    </style>

    Inspiring
    September 30, 2017

    Yes the CP Guru widget is a good option unless you are using HTML5. Flash is a dying option and many of the options out there have not caught up to HTML5

    Lilybiri
    Legend
    September 30, 2017

    Use File, Print, choose a template and limit it to the particular slide.