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.

How to use:
– Copy and paste the template below into
– 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>

For example, here is how you can do it in Zapier by re-using variables from Zapier Email Parser:

Setting up email template for html to pdf using zapier email parser and pdf.co

Related Pages: