# Creating PDFs

The best way to create a PDF in Relay.app is to first create a Google Doc, which you can do in a few different ways:

1. Create a new document
2. Write additional content to an existing document
3. Copy an existing document (and optionally fill in placeholders, see [Creating templated documents](/actions-in-apps/creating-templated-documents.md) for more detail)

<figure><img src="/files/2FaODQLhVqpp1S13EYoq" alt="" width="375"><figcaption><p>The menu of automations for Google Docs</p></figcaption></figure>

Once you have a Google Doc, you can use the "Export document" automation, which allows you to export the Google Doc as a one of a variety of filetypes (e.g. PDF or Microsoft Word).

<figure><img src="/files/jMNj1l0ClDagZnwEVtYx" alt=""><figcaption><p>The export document menu</p></figcaption></figure>

Once you've exported the document as a pdf, you will be able to use it as an attachment in emails, upload it to file storage, etc.

<figure><img src="/files/Zqhd6KmajWr2alBquvHS" alt="" width="375"><figcaption><p>Using the exported PDF as an email attachment</p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.relay.app/actions-in-apps/creating-pdfs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
