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 / HTML to PDF background...
Power Automate
Unanswered

HTML to PDF background colour

(0) ShareShare
ReportReport
Posted on by 347

Hi,

 

I'm currently sending HTML from a Power App to Automate which is then converted to PDF and saved in OneDrive. I have the pdf structure and content working, but the page colour is not!  Are there known issues for setting the PDF page colour to not be white?  

 

 

<!DOCTYPE html>
<html>
<head>
<style>
body {
 background: #ff7b67;
}

table {
 font-family: arial, sans-serif;
 border-collapse: collapse;
 width: 100%;
}

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

tr:nth-child(even) {
 background-color: #dddddd;
} 

</style>

 

  

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,768 Most Valuable Professional on at

    Hi @Coopedup,

     

    I believe the HTML property is background-color.

     

    Can you try this instead:

    <html>
    <head>
    <style>
    body {
     background-color: coral;
    }
    </style>
    <title></title>
    </head>
    <body>
    <h1>Test2</h1>
    </body>
    </html>

     

    coralbackgroundcolor.png

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard