# 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:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![biha](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/biha/32/84110_2.png) [@biha](https://community.glideapps.com/u/biha)
#### Post date: [October 7, 2021, 6:44am UTC](https://community.glideapps.com/t/export-to-pdf/32747/1 "2021-10-07T06:44:50Z")

</div>

Hi Glide Community,

Actually, is there any ways to have an apps that at the end we can automatically using button to export to Excel and PDF ?

---

<div class="post-metadata">

### Author: ![V88](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/v88/32/90054_2.png) [@V88](https://community.glideapps.com/u/V88)
#### Post date: [October 7, 2021, 7:00am UTC](https://community.glideapps.com/t/export-to-pdf/32747/2 "2021-10-07T07:00:18Z")

</div>

It would probably be worth taking an initial look at Integromat. It is relatively straightforward to send data from a Glide app to Integromat, format it as CSV or PDF, then have it forwarded elsewhere.

---

<div class="post-metadata">

### Author: ![biha](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/biha/32/84110_2.png) [@biha](https://community.glideapps.com/u/biha)
#### Post date: [October 7, 2021, 7:34am UTC](https://community.glideapps.com/t/export-to-pdf/32747/3 "2021-10-07T07:34:13Z")

</div>

Is there any ways to do with Google Sheet to PDF ?

---

<div class="post-metadata">

### Author: ![V88](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/v88/32/90054_2.png) [@V88](https://community.glideapps.com/u/V88)
#### Post date: [October 7, 2021, 7:47am UTC](https://community.glideapps.com/t/export-to-pdf/32747/4 "2021-10-07T07:47:35Z")

</div>

We often use Integromat to extract data from a row in a Google Sheet and insert into a template Google Doc which is then exported as PDF. Some of the other experts (e.g. @Darren_Murphy) may know how to do this using App Scripts and bypassing Integromat but is not something that we have experience with.

---

<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…

---

<div class="post-metadata">

### Author: ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)
#### Post date: [January 17, 2024, 4:50pm UTC](https://community.glideapps.com/t/export-to-pdf/32747/6 "2024-01-17T16:50:06Z")

</div>


