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 / Losing HTML formatting...
Power Automate
Unanswered

Losing HTML formatting while converting to PDF

(0) ShareShare
ReportReport
Posted on by 1,113

I have a simple HTML file template where am populating values from SharePoint list item in it dynamically while running the flow. The final html after populating values looks like below.

 

RameshMukka_0-1600886933451.png

After the step (Ondrive)"Convert File" and creating file pdf, it looks like below after loosing all formatting. How can I retain the formatting? What is the best and efficient way to convert SharePoint list item to PDF with formatting. I dont want to go for any premium connectors. Please help.

 

RameshMukka_2-1600887066635.png

 

Categories:
I have the same question (0)
  • v-alzhan-msft Profile Picture
    on at

    Hi @RameshMukka ,

     

    Could you please share a screenshot of the configuration of your flow?

    I suggest that you could select the required column in the list, create html table to it , send create a html file in OneDrive with the html table, and finally you could convert the html file to a pdf file.

     

    Best Regards,

    Alice

     

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

  • rameshmukka Profile Picture
    1,113 on at

    It appears my html is referring to an external site for css and flow not able to process it. Is that a limitation for flow? How to bypass that limitation?

     

    <!DOCTYPE html>
    <html>
    <head>
    <title>HTML</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
    <style>
    input, textarea{width:100%; border:none; border-bottm:1px solid;}
    table, th, td{ border: 1px solid black;text-align: center;}tr, td{padding: 10px}
    </style>
    </head>
    </body>
    <div class="container" style="margin-bottom:30px;">
    <div class="row" style="max-width: 800px;margin: 0px auto;">
    <form style="margin:30px 0px;">
    <div>
    <div class = "col-md-6">
    <h4><strong>Credit Payment Voucher</strong></h4>
    </div>

    <div class = "col-md-6">

    <div class = "col-md-4"> <label>Voucher No: </label>
    </div>

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard