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

Announcements

News and Announcements icon
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,980 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 456

#3
11manish Profile Picture

11manish 352

Last 30 days Overall leaderboard