> For the complete documentation index, see [llms.txt](https://cranford-tech.gitbook.io/pdf-creator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cranford-tech.gitbook.io/pdf-creator/implementing-key-features/saving-pdfs-to-your-bubble-database.md).

# 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="/files/8uS0hIGdMQ5iW5D0qNX5" 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="/files/HHU3660vDXAd7Kt90Ton" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/FciMHUQkYOEC5cFajKZA" 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/>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cranford-tech.gitbook.io/pdf-creator/implementing-key-features/saving-pdfs-to-your-bubble-database.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
