<?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> <title>accessing external libraries</title> <link rel="self" href="https://portal.smartbuilder.com/c/message_boards/find_thread?p_l_id=&amp;threadId=626063" /> <subtitle>accessing external libraries</subtitle> <id>https://portal.smartbuilder.com/c/message_boards/find_thread?p_l_id=&amp;threadId=626063</id> <updated>2026-10-10T13:49:11Z</updated> <dc:date>2026-10-10T13:49:11Z</dc:date> <entry> <title>RE: accessing external libraries</title> <link rel="alternate" href="https://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&amp;messageId=626119" /> <author> <name>Navdeep Dhillon</name> </author> <id>https://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&amp;messageId=626119</id> <updated>2024-09-10T19:05:34Z</updated> <published>2024-09-10T19:03:52Z</published> <summary type="html">Hi Marcel,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;PDF script&lt;/strong&gt;&lt;br /&gt;I think it may be from trying to run on your computer. I would test this only online from its delivery platform - you&amp;#039;ll run into too many security restrictions elsewhere. Generally speaking with scripting stuff, can you get it to run in a browser totally independently of SmartBuilder? Once you can do that (which is usually the hard part), you can look at integrating with SmartBuilder. I don&amp;#039;t know if you need to bundle the script with SmartBuilder, or if you can just have a standalone script that accepts a couple pieces of data on the URL string and then generates the PDF. So a script might live at:&lt;br /&gt;&lt;strong&gt;&lt;span style="color: #008000"&gt;https://www.mywebsite.com/pdfscript.js&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;And you might send a call using a HTTP block similar to:&lt;br /&gt;&lt;strong&gt;&lt;span style="color: #008000"&gt;https://www.mywebsite.com/pdfscript.js&lt;/span&gt;&lt;span style="color: #a52a2a"&gt;?name=John%20Doe&amp;amp;score=88&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;And then your script would parse that data and then generate the PDF accordingly.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Fullscreen&lt;/strong&gt;&lt;br /&gt;I&amp;#039;ve never done this before with an entire lesson. Is your lesson set to Scale on Desktop? (Edit &amp;gt; Lesson Settings &amp;gt; see image below). You might have to keep playing with it to find the right method. If I just F11 on my keyboard when viewing the published content, it seems to scale just fine.&lt;br /&gt;&lt;br /&gt;Hope that helps a little!&lt;br /&gt;&lt;br /&gt;- Nav</summary> <dc:creator>Navdeep Dhillon</dc:creator> <dc:date>2024-09-10T19:03:52Z</dc:date> </entry> <entry> <title>accessing external libraries</title> <link rel="alternate" href="https://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&amp;messageId=626062" /> <author> <name>Marcel Ooms</name> </author> <id>https://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&amp;messageId=626062</id> <updated>2024-09-10T13:55:19Z</updated> <published>2024-09-10T13:55:19Z</published> <summary type="html">Hi Smartbuilder,&lt;br /&gt;&lt;br /&gt;We are trying to get some new javascript functionality in our lessons, but are having some trouble.&lt;br /&gt;&lt;br /&gt;Our main thing is that we are trying to create and download a custumised pdf based upon the variables. For this our programmer is trying to add the external library pdf.js, but for some reason it keeps getting the error &amp;#039;unable to find pdf.js&amp;#039;. This means it is able to read the the js file in the config folder, but can not load the external library. We&amp;#039;ve also tried adding code in the html file (manually after publishing), but it still doesn&amp;#039;t work.&lt;br /&gt;&lt;br /&gt;We are now trying to add the library in ourselves (the js.map file) but this doesn&amp;#039;t work either. I know it&amp;#039;s a bit of a vague questions, but I was hoping you guys recognise the issue or could maybe point us in the right direction.&lt;br /&gt;&lt;br /&gt;A second thing is that we are trying to add a &amp;#039;fullscreen&amp;#039; button in our lesson. We are already able to let the browser go fullscreen, but the lesson doesn&amp;#039;t scale up, so it just ends up the same size in the top left corner, with then the rest of the screen in the color of &amp;#039;stage background&amp;#039;. I hope we are just targeting the wrong div, but maybe you guys also have an idea on this topic.&lt;br /&gt;&lt;br /&gt;Thanks in advance. Our project are getting better each time with all your tips and tricks &lt;img alt="emoticon" src="https://portal.smartbuilder.com/html/themes/classic/images/emoticons/happy.gif" &gt;</summary> <dc:creator>Marcel Ooms</dc:creator> <dc:date>2024-09-10T13:55:19Z</dc:date> </entry> </feed> 