# Export to PDF

**URL:** https://community.glideapps.com/t/export-to-pdf/32747
**Category:** Ask for Help
**Created:** [October 7, 2021, 6:44am UTC](https://community.glideapps.com/t/export-to-pdf/32747 "2021-10-07T06:44:50Z")
**Posts on this page:** 1
**Showing post:** 5

<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: [October 7, 2021, 1:46pm UTC](https://community.glideapps.com/t/export-to-pdf/32747/5 "2021-10-07T13:46:20Z")

</div>

If there is any chance 2 or more people might request a pdf at the same time then app script might bump into itself. Also if there are any changes to GSheet while app script is running it may create a second pdf.

Satisfying all these conditions is more work than learning integromat. I would highly recommend using integromat for this.

If you insist on app script I’ve used this from @Uzo

> [@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/export-to-pdf/32747)._
