--- title: "Saving Sent Emails as PDFs" slug: "saving-sent-emails-as-pdfs" status: "update" updated: 2024-02-12T12:56:38Z published: 2024-02-12T12:56:38Z canonical: "documentation.decisions.com/saving-sent-emails-as-pdfs" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Saving Sent Emails as PDFs Example Lab ArticleWhile Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released. --- ## Overview | ## Example Lab Details | | --- | | **Version** | 6.9.2 | | **Root Folder** | Example Lab - Saving Sent Emails as PDFs | | **Modules** | None | | **Dependencies** | None | This Example Lab project demonstrates how to convert a copy of any emails sent to a PDF. --- ## Explanation The Example Lab project works by using the **Custom** **Merge step**. This step allows for an **HTML file** to be created from a user-customized template. This HTML data is then passed on to the **HTML to PDF step**. This step converts the HTML data created from the email to a **PDF file**. To display this PDF file to the user in the Flow, that PDF file data is then loaded using the **Load File Data step** and passed into the **Document Viewer Form component**. The Form Document Viewer will give the user some basic actions when viewing the PDF file, such as downloading, printing, and rotating the document. Once finished viewing the document, clicking done will complete the Flow. Reference Articles[Custom Merge Step](https://documentation.decisions.com/step-library/docs/custom-merge-nvelocity) [HTML to PDF step](https://documentation.decisions.com/step-library/docs/html-to-pdf) [File References](https://documentation.decisions.com/docs/file-type-overview) [Document Viewer Form Component](https://documentation.decisions.com/docs/document-viewer-form) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-691(1).png) --- ## Project Download The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production-quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.9.2 or later using our [Importing/Exporting](https://documentation.decisions.com/docs/importing-and-exporting-projects) article. [ExampleLab[SavingSentEmailsAsPDFs].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BSavingSentEmailsAsPDFs%5D.zip) ---