How to convert PDF file to an image file in email script?

Lisa Goldman
Kilo Sage

Hello,

The following code is utilized in an email script to attach an image to the email body.  While it functions effectively with image files, it raises the question:  How can a PDF file be converted into an image to attach it into the body of an email?  Please provide suggestions.  Thank you

 

LisaGoldman_0-1710183361004.png

 

 

2 REPLIES 2

Sohithanjan G
Kilo Sage
Kilo Sage

Hi @Lisa Goldman , 

 

Better you go for a flow designer


  1. https://www.servicenow.com/community/itsm-forum/attach-pdf-to-email-notification/m-p/2567121
  2. https://www.servicenow.com/community/developer-forum/how-to-add-an-attachment-to-an-email-vial-scrip...

 

 

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)

Hello @Sohithanjan G 

The links you provided are related to attaching a PDF file with the email notification.  I am looking a way to convert an PDF file in to an image so the it can display image in the body of an email.  Thank you for helping.