# Pdf creation with button

**URL:** https://community.glideapps.com/t/pdf-creation-with-button/35339
**Category:** Ask for Help
**Created:** [December 1, 2021, 9:40am UTC](https://community.glideapps.com/t/pdf-creation-with-button/35339 "2021-12-01T09:40:40Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)
#### Post date: [December 1, 2021, 1:14pm UTC](https://community.glideapps.com/t/pdf-creation-with-button/35339/4 "2021-12-01T13:14:36Z")

</div>

Here is the app script for that

> [@PDF Generation - Google Scripts help](https://community.glideapps.com/t/pdf-generation-google-scripts-help/22145/34):
>
> function emailSpreadsheetAsPDF() { DocumentApp.getActiveDocument(); DriveApp.getFiles(); // This is the link to my spreadsheet with the Form responses and the Invoice Template sheets // Add the link to your spreadsheet here // or you can just replace the text in the link between "d/" and "/edit" // In my case is the text: 17I8-QDce0Nug7amrZeYTB3IYbGCGxvUj-XMt8uUUyvI const ss = SpreadsheetApp.openByUrl("https://docs.google.com/spreadsheets/d/17I8-QDce0Nug7amrZeYTB3IYbGCGxvUj-XMt8…

---

_[View the full topic](https://community.glideapps.com/t/pdf-creation-with-button/35339)._
