
Generate an Invoice Grouped by Delivery with Make and PDF.co
10 MIN READ
4 MIN READ
In this tutorial, we will show you how to convert Email (EML, MSG files) to PDF with PDF.co using Postman. We will use a Microsoft Outlook email with 2 PDF attachments as our sample file. At the end of this tutorial, the output file will be a merged 3-pages PDF document.
First, open the Postman app and set up the PDF.co Postman Collection. We have an easy-to-follow step-by-step guide.
Next, click the PDF from Email folder in the PDF.co API v.1.00 collection and open the POST/pdf/convert/from/email to convert PDF from email.
Now, let’s go over the /pdf/convert/from/email endpoint’s parameters.
Since we are done adding all the values, let’s click the Send button to see the result.
Here is the cURL code version.
curl --location --request POST 'https://api.pdf.co/v1/pdf/convert/from/email' \
--header 'Content-Type: application/json' \
--header 'x-api-key: YOUR_API_KEY' \
--data-raw '{
"url": "https://bytescout-com.s3-us-west-2.amazonaws.com/files/demo-files/cloud-api/email-to-pdf/sample.eml",
"embedAttachments": true,
"convertAttachments": true,
"paperSize": "Letter",
"name": "email-with-attachments",
"async": false,
"encrypt": false
}'This is our API call result. Click the link or copy and paste the URL to view the output.
Here is the converted Microsoft Outlook email merged with its two PDF file attachments.
In this tutorial, you learned how to convert email (EML, MSG files) to PDF with PDF.co using Postman. You familiarized yourself with the different parameters and their functions. You also learned how to embed the email attachments and include them in the final PDF output.

10 MIN READ

5 MIN READ
8 MIN READ
4 MIN READ
Create an account, get an API key and test a request.