gmail-processor icon indicating copy to clipboard operation
gmail-processor copied to clipboard

images missing in the saved PDF file with function "save the thread as a PDF file"

Open zzpy20 opened this issue 6 years ago • 1 comments

Hi Andreas, thanks for the great work. Not sure if it's only me or an existing issue. The function 'save email thread as PDF file' doesn't seem to include the images in the email body. In my case, all the PDF files saved have empty areas where the images were supposed to fill. Everything works brilliantly except the images were not on the PDF file.

I am not a programmer, so hope anyone can help.

Regards Alan

zzpy20 avatar Mar 22 '19 02:03 zzpy20

@ottonet, do you know if the PDF functionality you originally implemented is capable of including embedded images in the emails? From looking at the code it fully depends on the API function "message.getBody()" but I don't know if it is able to handle embedded images.

ahochsteger avatar Apr 28 '19 14:04 ahochsteger

Found a possible solution using this library: https://github.com/pixelcog/gmail-to-pdf

ahochsteger avatar Dec 08 '23 15:12 ahochsteger

:tada: This issue has been resolved in version 2.5.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Feb 07 '24 00:02 github-actions[bot]

@zzpy20, @chrismazanec it would be great to get some feedback if it works for you as intended. See this resources on how to use the new actions thread.exportAsPdf and message.exportAsPdf (*.storePDF is now deprecated):

  • https://ahochsteger.github.io/gmail-processor/docs/reference/actions#messageexportaspdf
  • https://ahochsteger.github.io/gmail-processor/docs/reference/actions#threadexportaspdf
  • https://github.com/ahochsteger/gmail-processor/blob/main/src/gas/examples/pr-291.js

ahochsteger avatar Feb 07 '24 10:02 ahochsteger