e-mail to PDF

Post Reply
pcarvalho
Member
Posts: 24
Joined: Tue Dec 16, 2014 12:08 pm

e-mail to PDF

Post by pcarvalho »

I'm trying to create a flow that extract every content of a email, convert it to PDF, merge all PDFs in a single file and send the email back with that PDF. This is for archive purposes.

The problem is when I print the email (.htm files) it prints without the images that are in the body.
The files are referred in the body email with cid:image001.png@01D45D....
i'm using wkhtmltopdf.exe in command line to print the .htm to PDF.
Does anyone have an idea how to solve this and print the email with the images?
image1.png
image1.png (93.68 KiB) Viewed 4102 times
Here are the properties of the Mail receive.
image2.png
image2.png (43.11 KiB) Viewed 4102 times
Attachments
image1.png
image1.png (93.68 KiB) Viewed 4101 times
laurentd
Member
Posts: 140
Joined: Wed Mar 13, 2019 2:06 pm

Re: e-mail to PDF

Post by laurentd »

You can save the signature images (image00n.png) in a separate folder, with user-managed path.
Then edit the html with a script, and replace the images paths to the folder defined above + image name.
Then convert the html body to pdf.
Laurent De Wilde, Solution Architect @ Enfocus
Post Reply