Skip to main content
Community site session details

Community site session details

Session Id : RhM6bf0pjnY3QzZFmGodPQ
Power Automate - General Discussion
Unanswered

Issues with flow converting HTML to PDF - Stuck in Landscape view?

Like (0) ShareShare
ReportReport
Posted on 14 Mar 2019 20:25:33 by 28

Hello everyone, I'm having issues trying to create a basic flow to convert a HTML table to a PDF. I'm following a video by Shane Young on YouTube. And everything seems to be functioning properly except the end result PDF. It looks like there is a problem with my HTML formating (beginner lvl) or the conversion where either the PDF is converted into landscape view or the table is too large? It gets cut off when it is converted.

 

Here is the flow:Flow

concat ('<!DOCTYPE html>
<html>
<head>
<style>
body {width: 8.5in; height: 11in}
table, th, td {
 border: 1px solid black;
 border-collapse: collapse;
}
th, td {
 padding: 5px;
 text-align: left;
}
</style>
</head>
<body>

<h2>Foreman''s Daily Log</h2>

<table style="width:100%">
 
 <tr>
 <th>Project:</th>
 <th>proname</th>
 <th>Job #:</th>
 <th>jnum</th>
 <th>Date:</th>
 <th>datesel</th>

</table>
</body>
</html>')

Result

 

  • v-bacao-msft Profile Picture
    on 18 Mar 2019 at 08:11:13
    Re: Issues with flow converting HTML to PDF - Stuck in Landscape view?

    Hi @lokdawg78 ,

     

    I think this can scale the table by setting the adaptive properties of the HTML table.

    But I am not good at HTML tags, so I am not able to provide the best solution.

    What I can do is manually modify the width of HTML table so that all fields are displayed in PDF file.

    I did a test on my side, set the width to 5.5, and then convert the HTML file into a PDF file, and the fields will be displayed.

    Image reference:

    35.PNG36.PNG

    Please take a try.

     

    Best Regards,

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1