How to Convert Email to PDF using HTML Template for HTML to PDF

Dec 3, 2024·2 Minutes Read

Using PDF.co and its HTML to PDF (called “Anything to PDF” in Zapier with “HTML code to PDF” mode) API can help with generating PDF using data from email parsers like Zapier Email and others.

Step 1: Copy and Paste Template and Replace Placeholders

Copy and paste the template below and replace “INSERT..” placeholders with variables from parsed emails.

HTML Template for Email to PDF conversion

<table>
    <tbody>
        <tr>
            <td>Date:</td> 
            <td>INSERT_DATE_HERE</td> 
        </tr>
        <tr>
            <td>From:</td> 
            <td>INSERT_FROM_NAME_HERE &lt;INSERT_FROM_EMAIL_ADDRESS_HERE&gt;</td> 
        </tr>
        <tr>
            <td>To:</td>
            <td>
            INSERT_TO_NAME_HERE &lt;INSERT_TO_NAME_HERE&gt;,
            </td>
        </tr>
        <tr>
            <td>CC:</td>
            <td>
            INSERT_TO_CC_NAME_HERE &lt;INSERT_TO_CC_NAME_HERE&gt;,
            </td>
        </tr>
        <tr>
            <td>Subject:</td> 
            <td>INSERT_SUBJECT_HERE</td> 
        </tr>
    </tbody>
</table>
<p/>
<p/>
<pre style='white-space: pre-wrap; word-break: keep-all;'>
INSERT_EMAIL_BODY_HERE
</pre>

Video Guide

Related Tutorials

See Related Tutorials