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.
IN THIS TUTORIAL
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 <INSERT_FROM_EMAIL_ADDRESS_HERE></td>
</tr>
<tr>
<td>To:</td>
<td>
INSERT_TO_NAME_HERE <INSERT_TO_NAME_HERE>,
</td>
</tr>
<tr>
<td>CC:</td>
<td>
INSERT_TO_CC_NAME_HERE <INSERT_TO_CC_NAME_HERE>,
</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
How to Convert Outlook Email to PDF using PDF.co and Make
Sep 9, 2024·6 Minutes Read
How to Convert Email (EML, MSG files) to PDF with PDF.co using Zapier
Sep 2, 2024·5 Minutes Read
Convert Email to PDF in Python using PDF Extractor Web API
Sep 2, 2024·5 Minutes Read