Skip to main content

Notifications

Community site session details

Community site session details

Session Id : LvEnh3isRYdK6D9BGLOgYE
Power Automate - Using Flows
Answered

"Conversion of this file to PDF is not supported. (InputFormatNotSupported / other)",

Like (0) ShareShare
ReportReport
Posted on 27 Apr 2024 21:54:38 by 4

Hey there. 

 

I am trying to convert a MS List input to PDF 

 

I am running into the error of 

"Conversion of this file to PDF is not supported. (InputFormatNotSupported / other)",
 
Here is my flow 
 
SmithN_0-1714254669470.png

and below is my HTML 

 

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>2 HOUR REPORT</title>
<style>
body {
font-family: Arial, sans-serif;
font-size: 16px;
}
.container {
width: 80%;
margin: 0 auto;
border: 2px solid #000;
padding: 20px;
position: relative;
}
.logo {
position: absolute;
top: 10px;
right: 10px;
}
.green-box {
width: 200px;
height: 200px;
background-color: green;
position: absolute;
top: 10px;
left: 10px;
background-image: url('THIS WILL BE GRAPHIC PATH.png');
background-size: cover;
}
.main-heading {
text-align: center;
}
.sub-heading {
margin-left: 20px;
}
.footer {
text-align: center;
font-size: 12px;
margin-top: 20px;
}
</style>
</head>
<body>
<div class="container">
<img src="THIS WILL BE LOGO PATH.png"> <!-- Replace with your logo path -->
<div class="green-box"></div>

<h1 class="main-heading">2 HOUR REPORT</h1>
<div class="sub-heading">
<h2>Investigating manager</h2>
<p></p>
<h3>Operational Area</h3>
<p></p>
<h4>HSSA Advisor</h4>
<p></p>
<h4>Incident Dates</h4>
<p></p>
<h4>Time of Incident</h4>
<p></p>
<h4>Who was involved?</h4>
<p></p>
<h4>Where?</h4>
<p></p>
<h4>What has happened?</h4>
<p></p>
<h4>Immediate Actions?</h4>
<p></p>
<h4>Photos (if applicable)</h4>
<p></p>
</div>
</div>
<div class="footer">
<p>v2.0 | Date of creation: April 27, 2024</p>
</div>
</body>
</html>

 
Thanks
  • SmithN Profile Picture
    4 on 29 Apr 2024 at 07:19:01
    Re: "Conversion of this file to PDF is not supported. (InputFormatNotSupported / other)",

    Hey Thank you for this 

    above didnt actual work but manage to find a way that does work and one little bit above showed me. I did not have the .HTML or the .PDF at the end

    It works now

     

    Thank you 🙂 

  • Verified answer
    Nived_Nambiar Profile Picture
    17,550 Super User 2025 Season 1 on 28 Apr 2024 at 03:35:15
    Re: "Conversion of this file to PDF is not supported. (InputFormatNotSupported / other)",

    Hi @SmithN 

     

    Convert file works for HTML formatted files as well. I have checked that as well. I just created a flow where it creates an html file (as same content which you have shared) and used that to create html file and then use its id to convert to pdf format, see below

    Nived_Nambiar_0-1714275216050.png

     

    Nived_Nambiar_1-1714275250216.png

     

    Nived_Nambiar_2-1714275278715.png

     

     

    I think you have pass wrong parameters/path to convert file using path action, try using convert to file as shown above, it would work !

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Using Flows

#1
VictorIvanidze Profile Picture

VictorIvanidze 2

Overall leaderboard

Featured topics

Restore a deleted flow
Loading started