Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

HTML table cannot be converted to PDF!

(0) ShareShare
ReportReport
Posted on by 10

Hello everyone,

I have a case I really hope you can help with!:) I have built a flow which aims to create a final PDF file. Lets assume this PDF includes unique information on top(ie customer name, last name, order date) and then a table which includes a list of orders of that customer. To do that, i have also created an html table in my flow, which i included in my concat expression. When the file is created I open it and the outcome is fine. But at the next step( where the file is converted to PDF), if i open the PDF file, the HTML table(customer order list) is nowhere. Any idea why?

Thank you in advance!

eiatrou19_0-1602255592740.png

 

  • eiatrou19 Profile Picture
    10 on at
    Re: your Re: HTML table cannot be converted to PDF!

    I did put the concatenate expression but now even the file shows the title of compose actions.

    that is my concat input:

     

    concat('
    <!DOCTYPE html>
    <html>
    <head>
    <title>Page Title</title>
    <style>
    body {
    font-family: Calibri;
    font-size: 11px;
    color: black;
    }

    th {
    text-align: left;
    vertical-align: text-top;
    font-family: Calibri;
    font-size: 11px;
    font: bold;
    color: black;
    }

    td {
    text-align: left;
    vertical-align: text-top;
    font-family: Calibri;
    font-size: 12px;
    color: black;
    }

    h2 {
    text-align: left;
    padding-top: 0;
    margin-top: 0;
    font-family: Calibri;
    font-size: 12px;
    font: bold;
    color: #EA640D;
    }

    table {
    width: 30%;
    padding: 13px 13px;
    font-family: Calibri;
    font-size: 8pt;
    }
    </style>
    </head>


    <body>
    ',

    '<img src="', variables('Logo') ,'">',
    '<h1>Report Summary</h1>',
    '<table style="width: 100%">',
    '<label>', outputs('Compose_3'),'</label>',
    '</table>',
    '<label>', outputs('Compose_2'),'</label>',
    '</table>'
    ,

    '<h2>Transactions</h2>',
    '<table style="width: 60%">',
    '<label>', outputs('Compose'),'</label>',
    '</table>'
    ,

    '</html>')

  • yashkamdar Profile Picture
    1,044 on at
    your Re: HTML table cannot be converted to PDF!

    Hello Team,

     

    We will need to verify your File content.

     

    Can you create a Compose action and put the Concatenate expression as an Input in the Compose action and check what output it is giving out.

     

    This is the best way to debug and check if all your content is either getting sent in the file content or not.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow