# Saving PDFs to your Bubble database

### Video Tutorial

The below video tutorial demonstrates how to save PDFs to your Bubble database (relevant section is from 08:55):

{% embed url="<https://www.youtube.com/watch?t=855s&v=gaFNz7UHDkI>" %}

### Instructions

* When generating PDFs with the 'Generate PDF Creator' workflow action, set the 'Save to Database' field to 'yes'
* This will result in the PDFs generated being saved to the 'File Manager' section of your Bubble database
* However, if you want your users to be able to access the PDFs, it is recommended you:
  * Create a data type called 'Saved PDFs' (or something similar)
  * Add a field to the 'Saved PDF' data type called 'PDF URL Link' (text type)

<figure><img src="https://302965189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ2Vt9Y2GXGNYGZT9VYhX%2Fuploads%2FBJgxmZkB8vWFuftqwxcl%2FScreenshot%202024-01-22%20at%2008.53.07.png?alt=media&#x26;token=7896d799-9982-40af-b879-c8e3eb691859" alt=""><figcaption></figcaption></figure>

* Use the 'When PDF Creator is saved to database' event to create a new 'saved PDF' entry and set the 'PDF URL Link' to be equal to PDF Creator's url

<figure><img src="https://302965189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ2Vt9Y2GXGNYGZT9VYhX%2Fuploads%2F8usW45MP6J0kUqadkiNv%2FScreenshot%202024-01-19%20at%2016.19.33.png?alt=media&#x26;token=e8bb602f-acad-4e93-8743-76055faf7c12" alt=""><figcaption></figcaption></figure>

You'll then be able to access PDFs saved down in your database via their saved URL.

<figure><img src="https://302965189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ2Vt9Y2GXGNYGZT9VYhX%2Fuploads%2FFpVTiC2U5v7wxoLFphYd%2F2024-01-19%2016.21.06.gif?alt=media&#x26;token=ce16d4c2-2c32-4fca-9249-006db120a386" alt=""><figcaption></figcaption></figure>

### Demo app

You can view an example of how to save PDFs to your Bubble database in the demo app at the below link (relevant section is the 'Saving a PDF to your Bubble database' section)

{% embed url="<https://pdf-creator-demo.bubbleapps.io/>" %}
