Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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>

 
 
  • PoohBear Profile Picture
    on at
    Re: Convert HTML to PDF using OneDrive for Business Does Not Create the PDF

    Thanks I will give it a try.

     

  • Verified answer
    v-litu-msft Profile Picture
    on at
    Re: Convert HTML to PDF using OneDrive for Business Does Not Create the PDF

    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.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492