web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Convert File PDF - JPG...
Power Automate
Unanswered

Convert File PDF - JPG broken

(0) ShareShare
ReportReport
Posted on by 27
Action 'Convert_file' failed: Conversion of this file to JPG is not supported. (Pdf_Pdf_InvalidFileHeader / An exception occurred while executing within the Sandbox) Unable to convert PDF - JPG
 
I have a Microsoft Power Automate flow, where the goal is to extract a PDF from an automated Email, create a file in a folder (PDF Format) then the flow is meant to convert the PDF to a JPG and save a JPG version of the file in the same place. I have worked through most of the teething issues so far but am perplexed by the following error message:
Action 'Convert_file' failed: Conversion of this file to JPG is not supported. (Pdf_Pdf_InvalidFileHeader / An exception occurred while executing within the Sandbox)
The thing is, in the drop down of the convert file action where you pick type, there are only HTML, PDF, JPG and GLB. The goal of this flow is to have a JPG ready to be read by screencloud and displayed on a screen in our durectors office, and the JPG will show hourly output of our production lines.
The flow starts with When a new email arrives (V3)
Then it uses Create File Action
Then Convert File (this is the PDF to JPG conversion)
It then uses the Create File Action to create a JPG.
Why won't it let me convert to a JPG, is it converting the PDF to a type of file that can't be converted to a JPG? If so how do I change the type of PDF it is saving as?
 
Categories:
I have the same question (0)
  • takolota1 Profile Picture
    4,974 Moderator on at
    If for some reason you can’t get the conversion to work, or need to convert multiple pages to images, and you have access to Microsoft Azure, then you can use an Azure Function to perform the conversions, like in this template: https://community.powerplatform.com/galleries/gallery-posts/?postid=a5255ced-dc08-f011-bae3-6045bdf03fcb

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard