Highlighted

Export variables to pdf??

Explorer ,
Aug 30, 2018

Copy link to clipboard

Copied

Hi! I'm trying to create an exercise where users can write a "to do list". I have a pdf template with text boxes and i want to transfer the text from text entry boxes to the pdf so the user can download it. my idea is to make a button that open the pdf in new window but i don't know how to transfer the variables. help ❤️

Views

231

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Export variables to pdf??

Explorer ,
Aug 30, 2018

Copy link to clipboard

Copied

Hi! I'm trying to create an exercise where users can write a "to do list". I have a pdf template with text boxes and i want to transfer the text from text entry boxes to the pdf so the user can download it. my idea is to make a button that open the pdf in new window but i don't know how to transfer the variables. help ❤️

Views

232

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Most Valuable Participant ,
Aug 30, 2018

Copy link to clipboard

Copied

Why not insert the variables that have been populated by the TEB's on a slide and let them print?  Is that pdf a form?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Aug 31, 2018

Copy link to clipboard

Copied

and how can i print another slide? can i creat a button that allow to print the slide as pdf?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Engaged ,
Aug 31, 2018

Copy link to clipboard

Copied

If the slide is just static (no interactive elements) it will be easier to just make a pdf document yourself and have button that links to it. Printing off of a Captivate screen likes to default to portrait orientation and many browsers will not let you change that.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Aug 31, 2018

Copy link to clipboard

Copied

the page is not static, because the user must type some words and i want to print that words that change for every user

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Most Valuable Participant ,
Aug 31, 2018

Copy link to clipboard

Copied

JS window.print(); attached to a button that has to be pressed by the user.  He can set up to print to a pdf.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Contributor ,
Aug 31, 2018

Copy link to clipboard

Copied

To create a .pdf you would need to send the vars to a server-side script, or use a javascript library to generate the .pdf. If you are a JS guru, have a look at PDF.js.  Or you can use FPDF library for PHP.

If you just want your users to be able to print - or if they have the capability to print to .pdf, then you can easily add a button in Captivate with the following JS:

window.print();

This will open the browser's standard print dialog box.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Aug 31, 2018

Copy link to clipboard

Copied

I tried with "window.print();" but it cut the page:

Immagine.jpg

Immagine2.jpg

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Engaged ,
Aug 31, 2018

Copy link to clipboard

Copied

Right - the print set up defaulted to portrait orientation. Users have to make sure to select landscape orientation to print the page as it appears on screen. That will be different for each operating system. You may want to give instructions for selecting landscape.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Aug 31, 2018

Copy link to clipboard

Copied

tried but don't work, it cut anyway a portion of page. It is so hard to make a button that print only the page portion of scorm? captivate haven't any function that print what the user see? very sad that this simple function doesn't exist..

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Engaged ,
Aug 31, 2018

Copy link to clipboard

Copied

I agree - it is unfortunate that printing a screen is not built-in, but Captivate is supposed to be for on-screen learning. The only solution is to fiddle with the print settings - landscape, shrinking the image to fit the paper, etc. And that is all dependent on the user knowing how those controls work on his/her own machine. I have looked for a JS solution to this, but the best I've found is very old and doesn't work on all browsers.

@chrismay - I tried that one but it is ignored by some browsers.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Contributor ,
Aug 31, 2018

Copy link to clipboard

Copied

you could try adding this CSS into the html file captivate creates. I'm not sure all browser support this, it would need some testing

<style type="text/css" media="print">
 
@page { size: landscape; }
</style>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Aug 31, 2018

Copy link to clipboard

Copied

there is not even a way to create a button that makes a screenshoot to the page and save it?


					
				
			
			
				
			
			
			
			
			
			
			
		

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Sep 03, 2018

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Resources
Captivate User Guide
New Group