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 / Output Formatting - Tips
Power Automate
Suggested Answer

Output Formatting - Tips

(0) ShareShare
ReportReport
Posted on by 25

Hi everyone, I’ve created a Power Automate flow that automatically processes incoming emails and sends back a formatted PDF report.

The flow works well, but I’d like to improve the formatting of the final PDF, which currently looks very plain. Here's a quick overview of my flow:

  • When a new email arrives
  • Initialize variable
  • Apply to each attachment (if applicable)
  • Run a prompt using the email body as input
  • Compose the result into HTML to preserve formatting
  • Create an HTML file with that content
  • Convert the HTML file to PDF
  • Create a file (as a backup or for reference)
  • Send the converted PDF as an email attachment

The PDF content is readable, but the design is very basic. I’m looking for tips on how to improve the visual layout—like using better fonts, headers, spacing, or adding a company logo or styling.

What’s the best way to format the HTML so that the resulting PDF looks polished and professional? Any suggestions, examples, or best practices would be really appreciated.

Thank You

Screenshot 2025-07-18 173752.png
Categories:
I have the same question (0)
  • Suggested answer
    Power Platform 1919 Profile Picture
    2,205 Super User 2026 Season 1 on at
    Hi @EM-09071651-0, if it is possible, can you share the existing pdf layout design and content in Compose action (which I believe the html is being generated). Based on these , we can suggest some design changes.
  • Suggested answer
    David_MA Profile Picture
    14,231 Super User 2026 Season 1 on at
    Use a compose action and use HTML coding to do whatever you think would be a good design that looks polished and professional. You can insert the HTML body of the email into a <div> before converting it to PDF. See the attached text file for sample HTML. It will render like below, which you can test at W3Schools Tryit Editor.
     
  • André Arnaud de Calavon Profile Picture
    544 on at
    Hi,
     
    Your question is more about HTML than Power Automate. The layout can be managed by HTML coding. You can learn more about HTML on W3School. David already shared a link. 
    You can also create a word document with the style you need. Then save this as HTML file. Word will add some not required coding, but using W3School help, you can extract the minimum required HTML for your purpose.

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 456

#3
11manish Profile Picture

11manish 352

Last 30 days Overall leaderboard