> 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/making-pdf-files-private.md).

# Making PDF files private

Bubble provides you with the ability to link files to a specific database record and inherit the privacy rules associated with that record.

{% hint style="info" %}
See [this section of the Bubble manual](https://manual.bubble.io/help-guides/data/files) for further details on private files
{% endhint %}

To make PDF files created by PDF Creator private, follow these steps:

1. On the 'Generate PDF Creator' action, check the '**Make this file private**' option

<figure><img src="/files/KaNTnaY03PdjjYKHycnm" alt=""><figcaption></figcaption></figure>

2. Specify a 'thing' to attach the file to in the '**Attach file to'** field. In the above example, we're attaching the file to the **Current User**, which means the uploaded file will inherit all the privacy rules associated with the Current User.

These are the privacy rules that are set on the user data type in our example:

<figure><img src="/files/8CKxnBHFpZ6bsw3BwaKd" alt=""><figcaption></figcaption></figure>

This means that when the user is logged in, they can still access the PDF. But if another user tries to access the URL associated with the PDF they'll get blocked:

<figure><img src="/files/Cym7rJvAHES1wp3yFI1J" alt=""><figcaption></figcaption></figure>


---

# 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/making-pdf-files-private.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.
