Erfahre, wie du ohne Verwendung von Premium-Konnektoren mit Power Automate eine PDF-Datei aus HTML erstellen kannst.
Schritt für Schritt: So erstellst du mit Power Automate eine PDF-Datei aus HTML
Lerne, wie du Schritt für Schritt eine PDF-Datei aus HTML erstellst.
-
Erstelle einen neuen Power Automate Flow mit manuellem Trigger
Flow Erstellung
-
Füge ‚Compose‘ Action hinzu
Compose Action erstellen
-
Kopiere das HTML in das Input Feld der Compose Action
HTML einfügen
-
Füge eine ‚Create file‘ Action hinzu
Create file
-
Setze ‚Create file‘ Folder Path, File Name und File Content
Create HTML File Konfiguration
-
Füge eine ‚Convert file using path‘ Action hinzu
Convert file using path
-
Konfiguriere ‚Create File Action: Folder Path,File Name und File Content
Create file Konfiguration
-
Füge einen ‚Convert File using path‘ Action Schritt hinzu
Convert file using path
-
Konfiguriere ‚Convert file using path‘ File Path und Target Type (PDF)
Konfiguration von ‚Create file using path‘
-
Füge eine ‚Send an email (V2)‘ Action hinzu
Send an email (V2)
-
Verschicke das PDF per E-Mail
Konfiguration ‚Send an email (V2)‘
HTML für Copy and Paste
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<style>
* {
font-family: Arial;
font-size: 11px;
}
th,td {
padding:6px;
text-align: start;
vertical-align: text-top;
}
th{
max-width: 100px;
min-width: 100px;
}
td{
max-width: 340px;
min-width: 340px;
}
h3{
font-size: 20px;
font-weight: bolder;
padding-bottom: 4px;
margin-bottom: 0px;
}
td{
background-color:#f3f3f3;
}
</style>
<h3>Sample PDF</h3>
<table>
<tr>
<th>First name </th>
<td>John</td>
<th>Last name</th>
<td>Doe</td>
</tr>
<tr>
<th>Age</th>
<td>27</td>
<th>Gender</th>
<td>Male</td>
</tr>
<tr>
<th>Country</th>
<td>USA</td>
<th>City</th>
<td>New York</td>
</tr>
</table>
</body>
</html>