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 HTML to PDF us...
Power Automate
Answered

Convert HTML to PDF using OneDrive for Business Does Not Create the PDF

(0) ShareShare
ReportReport
Posted on by

I am having an issue converting a html file to pdf. The html file gets created perfectly, but after converting to pdf it is blank. Has anyone else had this issue before?
ConvertHTMLtoPDF.png

<!DOCTYPE html>
<html>
<head>
<style>
table {
font-family:arial , sans-serif;
border-collapse: collapse;
width: 100%;
Font-Size:10pt;
}

td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}

tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head>
<body>
<table>
<tr>
<th colspan="12"style="background-color:#0078D4;color:white">DISPOSAL FORM
(Hardware, Software, and Other AAA Equipment</tr>
<tr>
<th>Asset Type</th>
<th>Dept #</th>
<th>Asset Tag #</th>
<th>Serial #</th>
<th>HW Description</th>
<th>Equipment Location</th>

</tr>

<tr>
<td>@{body('Get_item')?['AssetType1']}</td>
<td>@{body('Get_item')?['Dept1']}</td>
<td>@{body('Get_item')?['AssetTag1']}</td>
<td>@{body('Get_item')?['Serial1']}</td>
<td>@{body('Get_item')?['OData__x0048_W1']}</td>
<td>@{body('Get_item')?['Equip1']}</td>

</tr>

</table>
</body>
</html>

 
 
Categories:
I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @PoohBear,

     

    If the convert file action of OneDrive for business not work, you could have a try that using the Encodian connector's Convert HTML to PDF file action, for example:

    Annotation 2019-12-17 140831.png

    Run result:

    Annotation 2019-12-17 141309.png

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • PoohBear Profile Picture
    on at

    Thanks I will give it a try.

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard