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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Convert HTML to PDF us...
Power Automate
Unanswered

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard