cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MPPowerApps
Frequent Visitor

Problems with converting an html file to pdf via Power Automate

Hello all,

 

I have an issue converting my html content to PDF format. This is my flow:

 

MPPowerApps_0-1633961957435.png

 

This is my html code:

<html>
<header>
<p><div style="display:block; text-align:left; float:left;"><h1>Personalstammblatt</h1></div>
<div style="display:block; text-align:right;"><img src=""https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg""></div></p>
</header>

<body marginwidth="50" marginheight="100" topmargin="100" leftmargin="140">
<font face="Arial" size=4>

<hr noshade style="width:1200px; height:0.5px; text-align:left"></hr>
<br>

<h4>Personaldaten</h4>
<table width=250% border=0 cellspacing=20 cellpadding=0 style="font-family: Arial; font-size:18">
<tr>
<td>Vorname</td>
<td>@{outputs('Vorname')}</td>
</tr>
<tr>
<td>Nachname</td>
<td>@{outputs('Nachname')}</td>
</tr>
<tr>
<td>Straße</td>
<td>______________________________________________________________________</td>
</tr>
<tr>
<td>Hausnummer</td>
<td>______________________________________________________________________</td>
</tr>
<tr>
<td>Postleitzahl</td>
<td>______________________________________________________________________</td>
</tr>
<tr>
<td>Ort</td>
<td>______________________________________________________________________</td>
</tr>
<tr>
<td>Steuer-ID</td>
<td>______________________________________________________________________</td>
</tr>
</table>

<br></br>

<h4>Bankdaten</h4>
<table width=180% border=0 cellspacing=20 cellpadding=0 style="font-family: Arial; font-size:18">
<tr>
<td>Name Kontoinhaber</td>
<td>______________________________________________________________________</td>
</tr>
<tr>
<td>IBAN</td>
<td>______________________________________________________________________</td>
</tr>
<tr>
<td>BIC</td>
<td>______________________________________________________________________</td>
</tr>
</table>

</body>
</html>

 

Creating a html file works well and when I open the file it looks like expected. But the converted PDF looks like this: 

MPPowerApps_1-1633962341847.png

 

Greetings and thanks for any help

0 REPLIES 0

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,978)