> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cassidyai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Export as PDF

> Export Workflow output as a downloadable PDF file.

Converts document content into a PDF file that can be downloaded or attached to other actions in your [Workflow](/workflows/overview).

<Steps>
  <Step title="Add the action">
    In the Workflow builder, click **+** between blocks and select **Export as PDF** from the action library.

    <Frame>
      <img src="https://mintcdn.com/cassidy/UO0c6HH8Ick4vNlS/images/reference/export-as-pdf-img-0.png?fit=max&auto=format&n=UO0c6HH8Ick4vNlS&q=85&s=21b4f134a3a49fec0a9e21eb0990e008" alt="Action library with Export as PDF selected" width="914" height="552" data-path="images/reference/export-as-pdf-img-0.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cassidy/UO0c6HH8Ick4vNlS/images/reference/export-as-pdf-img-1.png?fit=max&auto=format&n=UO0c6HH8Ick4vNlS&q=85&s=ffc9efcacce84577281cf02db69ff1ae" alt="Adding the Export as PDF action between blocks" width="910" height="896" data-path="images/reference/export-as-pdf-img-1.png" />
    </Frame>
  </Step>

  <Step title="Enter the document name">
    Provide a name for your PDF document. This will be the filename when the PDF is generated.

    <Frame>
      <img src="https://mintcdn.com/cassidy/UO0c6HH8Ick4vNlS/images/reference/export-as-pdf-img-3.png?fit=max&auto=format&n=UO0c6HH8Ick4vNlS&q=85&s=1bf5abddd0dba682e56944b9923cb4cd" alt="Document name field for the PDF" width="906" height="172" data-path="images/reference/export-as-pdf-img-3.png" />
    </Frame>
  </Step>

  <Step title="Enter the document content">
    Define the content of your PDF document. You can mix static text with variables from the trigger or previous steps to create dynamic documents.

    <Frame>
      <img src="https://mintcdn.com/cassidy/UO0c6HH8Ick4vNlS/images/reference/export-as-pdf-img-4.png?fit=max&auto=format&n=UO0c6HH8Ick4vNlS&q=85&s=5f062a4d77130c6ca06336af08b8d0af" alt="Document content field with variables" width="874" height="454" data-path="images/reference/export-as-pdf-img-4.png" />
    </Frame>
  </Step>

  <Step title="Preview and download the PDF">
    After running the Workflow, preview the generated PDF and download it by clicking the icons next to the action in the results panel.

    <Frame>
      <img src="https://mintcdn.com/cassidy/UO0c6HH8Ick4vNlS/images/reference/export-as-pdf-img-5.png?fit=max&auto=format&n=UO0c6HH8Ick4vNlS&q=85&s=5c100bed03f2370c6c8be50cb8ff8a49" alt="Preview and download icons in the results panel" width="892" height="490" data-path="images/reference/export-as-pdf-img-5.png" />
    </Frame>
  </Step>

  <Step title="Attach the PDF to other actions (optional)">
    You can use the generated PDF as an attachment in other actions like [Send Email](/reference/actions/send-email). Reference the PDF output from this action when configuring email attachments.

    <Frame>
      <img src="https://mintcdn.com/cassidy/UO0c6HH8Ick4vNlS/images/reference/export-as-pdf-img-6.png?fit=max&auto=format&n=UO0c6HH8Ick4vNlS&q=85&s=818a2b03d07ac028132447479a94068d" alt="Attaching the PDF to a Send Email action" width="908" height="190" data-path="images/reference/export-as-pdf-img-6.png" />
    </Frame>
  </Step>
</Steps>

## Related

* [Export as CSV](/reference/actions/export-as-csv)
* [Export as Word](/reference/actions/export-as-word)
* [Create files with Workflows](/guides/create-files)
