# Email copy of slide

**URL:** <https://talk.atomisystems.com/t/email-copy-of-slide/1471>\
**Category:** Support Questions\
**Created:** [December 18, 2018, 2:55am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471 "2018-12-18T02:55:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![CHRIS\_BALSOM](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/chris_balsom/32/685_2.png) [@CHRIS\_BALSOM](https://talk.atomisystems.com/u/CHRIS_BALSOM)\
**Post date:** [December 18, 2018, 2:55am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/1 "2018-12-18T02:55:40Z")

</div>

I would like to email a copy of a slide not show when button is pressed.

I have my results screen and after that if they have passed then it shows a certificate. I have the java to print this but want to be able to email a copy of the slide as PDF, or Jpeg.

How do I do this???

---

<div class="post-metadata">

**Author:** ![namnt](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/namnt/32/796_2.png) [@namnt](https://talk.atomisystems.com/u/namnt)\
**Post date:** [December 19, 2018, 2:09am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/2 "2018-12-19T02:09:21Z")

</div>

Hi,

Unfortunately, ActivePresenter doesn’t support this feature.

Regards,

---

<div class="post-metadata">

**Author:** ![CHRIS\_BALSOM](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/chris_balsom/32/685_2.png) [@CHRIS\_BALSOM](https://talk.atomisystems.com/u/CHRIS_BALSOM)\
**Post date:** [December 19, 2018, 10:06pm UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/3 "2018-12-19T22:06:37Z")

</div>

Do you know of a way to force it to print as pdf so they can email as attachment?

---

<div class="post-metadata">

**Author:** ![namnt](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/namnt/32/796_2.png) [@namnt](https://talk.atomisystems.com/u/namnt)\
**Post date:** [December 20, 2018, 7:49am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/4 "2018-12-20T07:49:57Z")

</div>

Hi,

It seems that there is no easy way to force to print the content as a PDF file. Users have to select the output format in the print windows then attach that PDF file in the email.

Regards,

---

<div class="post-metadata">

**Author:** ![namnt](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/namnt/32/796_2.png) [@namnt](https://talk.atomisystems.com/u/namnt)\
**Post date:** [December 21, 2018, 9:53am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/5 "2018-12-21T09:53:55Z")

</div>

Hi Chris,

Here is a sample about email (or download) a copy of the slide as PNG.

In this sample, the first slide contains two text boxes for users input their name and their email address (which will be used to send email).

The second slide contains the certificate. Because of some technical limits, this slide should only contain images and texts. Please take a look at On Load event of this slide - here we add custom javascript code for download or send email action.

We use Google Script to send the email. You can see the sample code here:

[https://script.google.com/d/136EsVhYLTHH24W8eQftzpJ\_GdJaSa4sTZ0meIFAIsjhEO143WoXrr5DQ/edit?usp=sharing](https://script.google.com/d/136EsVhYLTHH24W8eQftzpJ_GdJaSa4sTZ0meIFAIsjhEO143WoXrr5DQ/edit?usp=sharing)

Here is the guide for deploying a Google Script as a web app:

[https://developers.google.com/apps-script/guides/web](https://developers.google.com/apps-script/guides/web)

Hope this helps,

[Certificate .approj](https://talk.atomisystems.com/uploads/default/original/1X/b05ffd8e1b745318998bea441dcd80aa61a84bf7.approj) (1.1 MB)

Regards,

---

<div class="post-metadata">

**Author:** ![CHRIS\_BALSOM](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/chris_balsom/32/685_2.png) [@CHRIS\_BALSOM](https://talk.atomisystems.com/u/CHRIS_BALSOM)\
**Post date:** [December 22, 2018, 2:26am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/6 "2018-12-22T02:26:13Z")

</div>

Nam, Thanks for the assist.

This works so well and is exactly what I am looking for.

This template you supplied send from your email address, How do I change that to send from the learners?

---

<div class="post-metadata">

**Author:** ![namnt](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/namnt/32/796_2.png) [@namnt](https://talk.atomisystems.com/u/namnt)\
**Post date:** [December 24, 2018, 2:14am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/7 "2018-12-24T02:14:18Z")

</div>

Hi,

Sending email from the learners’ email requires users authentication. The web app will send email on behalf of users so I don’t think that is a good idea.

Regards,

---

<div class="post-metadata">

**Author:** ![CHRIS\_BALSOM](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/chris_balsom/32/685_2.png) [@CHRIS\_BALSOM](https://talk.atomisystems.com/u/CHRIS_BALSOM)\
**Post date:** [December 24, 2018, 2:51am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/8 "2018-12-24T02:51:03Z")

</div>

SO how do I change to web app to say that email is from my website/address and not yours. I know nothing about JAVA SCRIPTING.

---

<div class="post-metadata">

**Author:** ![namnt](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/namnt/32/796_2.png) [@namnt](https://talk.atomisystems.com/u/namnt)\
**Post date:** [December 24, 2018, 2:59am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/9 "2018-12-24T02:59:12Z")

</div>

Hi,

Please follow this tutorial (find the _Deploying a script as a web app_ section) [https://developers.google.com/apps-script/guides/web](https://developers.google.com/apps-script/guides/web) to deploy your web app. After complete deploy, you will see your web app URL.

Then replace my web app URL by your web app URL in Slide 2 -\> On Load -\> Execute JavaScript

 ![code_rep](https://talk.atomisystems.com/uploads/default/original/1X/eb77b1e68367142fdad6e3fb871136723fbc9324.png)

Regards,

---

<div class="post-metadata">

**Author:** ![CHRIS\_BALSOM](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/chris_balsom/32/685_2.png) [@CHRIS\_BALSOM](https://talk.atomisystems.com/u/CHRIS_BALSOM)\
**Post date:** [December 27, 2018, 12:25am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/10 "2018-12-27T00:25:10Z")

</div>

Thanks heap, I have successfully created the button.

---

<div class="post-metadata">

**Author:** ![scotstew](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/scotstew/32/2050_2.png) [@scotstew](https://talk.atomisystems.com/u/scotstew)\
**Post date:** [May 2, 2019, 4:33pm UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/11 "2019-05-02T16:33:17Z")

</div>

Hi Nam,

Is there any way to increase the text size on the resulting PNG from the default size (which appears to be about 10pt). The text appears too small on the merged PNG created by the web app.

Thanks much!  
Scott

---

<div class="post-metadata">

**Author:** ![namnt](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/namnt/32/796_2.png) [@namnt](https://talk.atomisystems.com/u/namnt)\
**Post date:** [May 3, 2019, 1:58am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/12 "2019-05-03T01:58:25Z")

</div>

Hi Scott,

You should open the project then change the font size of the learner name text caption and export the project again.

 ![image](https://talk.atomisystems.com/uploads/default/original/1X/cb648731cdafdbed71d76499c1f7a0e9be33c5f9.jpeg)

Regars,

---

<div class="post-metadata">

**Author:** ![scotstew](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/scotstew/32/2050_2.png) [@scotstew](https://talk.atomisystems.com/u/scotstew)\
**Post date:** [May 3, 2019, 11:33am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/13 "2019-05-03T11:33:32Z")

</div>

Thanks for the response, Nam. I increased the size to 28 pts in AP, saved, and exported again. Formatted text looks great on the screen, but the change had no effect on the resulting merged PNG (see image below):  
 ![Cert-Variable_Text](https://talk.atomisystems.com/uploads/default/original/1X/4c9db117ce73d6a22b15200c5f6b11ad6f3410a5.png)

Any suggestions?

Thanks again for your help!  
Scott

---

<div class="post-metadata">

**Author:** ![namnt](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/namnt/32/796_2.png) [@namnt](https://talk.atomisystems.com/u/namnt)\
**Post date:** [May 4, 2019, 1:41am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/14 "2019-05-04T01:41:51Z")

</div>

Hi Scott,

I’ve tried with the above project and it works well. Did you make any changes in your project?

Or you can send us your project so we can check.

Regards,

---

<div class="post-metadata">

**Author:** ![namnt](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/namnt/32/796_2.png) [@namnt](https://talk.atomisystems.com/u/namnt)\
**Post date:** [May 4, 2019, 1:57am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/15 "2019-05-04T01:57:56Z")

</div>

Hi Scott,

I forgot to mention that you have to select the learner name text caption then change the font size (just select the object then change format). Please don’t click inside the text caption to change the format.

Regards,

---

<div class="post-metadata">

**Author:** ![scotstew](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/scotstew/32/2050_2.png) [@scotstew](https://talk.atomisystems.com/u/scotstew)\
**Post date:** [May 4, 2019, 3:43pm UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/16 "2019-05-04T15:43:19Z")

</div>

Hi Nam,

Not sure what I’m doing wrong. I tried changing formatting only at the text caption object level, and same result. I am attaching a link to an excerpt of the project file with the two slides involved.

[https://1drv.ms/u/s!AkBkpKDGqX3ZkfUZqOCG0lXQw0NDUg](https://1drv.ms/u/s!AkBkpKDGqX3ZkfUZqOCG0lXQw0NDUg)

Thanks again for all your help.  
Scott  
(P.S.: The email function is not working either but that’s probably another issue for another time.)

---

<div class="post-metadata">

**Author:** ![scotstew](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/scotstew/32/2050_2.png) [@scotstew](https://talk.atomisystems.com/u/scotstew)\
**Post date:** [May 4, 2019, 9:09pm UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/17 "2019-05-04T21:09:47Z")

</div>

Hi again, Nam,

It seems to be a browser issue. The text size is correct in the merged PNG in Chrome but not in Firefox or Explorer. I can recommend that users access the module in Chrome; no problem.

So the only issue now is that I get a “Result: error” message when attempting to send the cert by email. I have copied your Code.gs exactly per your guidance above. Any suggestions?

Thanks!  
Scott

---

<div class="post-metadata">

**Author:** ![namnt](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/namnt/32/796_2.png) [@namnt](https://talk.atomisystems.com/u/namnt)\
**Post date:** [May 6, 2019, 7:42am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/18 "2019-05-06T07:42:32Z")

</div>

> [@scotstew](#):
>
> It seems to be a browser issue. The text size is correct in the merged PNG in Chrome but not in Firefox or Explorer. I can recommend that users access the module in Chrome; no problem.

Hi Scott,

Yes, you are right. The text size problem is related to browser compatibility. I’ve updated the code so now it can work with Chrome, Firefox or Edge.

> **[NPP-Cert (1).approj](https://drive.google.com/file/d/1qjbXR4nIwwVSPGewjX70RqTUO2TxQRAV/view?usp=sharing)**
>
> Google Drive file.

> [@scotstew](#):
>
> So the only issue now is that I get a “Result: error” message when attempting to send the cert by email. I have copied your Code.gs exactly per your guidance above. Any suggestions?

It seems there is something wrong when you deploy the web app.  
You should clone my code first. Then you have to deploy your web app with the following options to allow the web app can send email on behalf of you:

 ![image](https://talk.atomisystems.com/uploads/default/original/1X/850384493dd9a6c579fa9eb18ab5a76f924d9f21.png)

Regards,

---

<div class="post-metadata">

**Author:** ![CHRIS\_BALSOM](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/chris_balsom/32/685_2.png) [@CHRIS\_BALSOM](https://talk.atomisystems.com/u/CHRIS_BALSOM)\
**Post date:** [May 8, 2019, 10:59pm UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/19 "2019-05-08T22:59:44Z")

</div>

Nam, are you able to resend the google code, as we have the same issue and then I can redo all my modules.

---

<div class="post-metadata">

**Author:** ![namnt](https://talk.atomisystems.com/user_avatar/talk.atomisystems.com/namnt/32/796_2.png) [@namnt](https://talk.atomisystems.com/u/namnt)\
**Post date:** [May 9, 2019, 1:40am UTC](https://talk.atomisystems.com/t/email-copy-of-slide/1471/20 "2019-05-09T01:40:59Z")

</div>

Hi Chris,

The Google code is the same as the original. I only change the JavaScript code, please see the code in On Load event of Slide 2:

[Certificate.approj](https://talkcdn.atomisystems.com/uploads/default/original/1X/b05ffd8e1b745318998bea441dcd80aa61a84bf7.approj)

Regards,

[Next page](https://talk.atomisystems.com/t/email-copy-of-slide/1471.md?page=2)
