Hey there.
I am trying to convert a MS List input to PDF
I am running into the error of
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>
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 🙂
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
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 !
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! 🙌