This is my flow of exporting HTMLText to PDF :


When i executed this flow to print, the printed file will read the HTMLText as PlainText,

below is my HTML code :
"<!DOCTYPE html>
<html>
<head>
<title>Checklist Interface</title>
<style>
table {
font-family: arial, sans-serif;
width: 100%;
}
th:nth-child(2),
td:nth-child(2) {
width: 2%; /* Adjusted width for Completed column */
}
th:nth-child(3),
td:nth-child(3) {
width: 2%; /* Adjusted width for Remarks column */
}
th {
padding: 5px;
border: 1px solid #dddddd;
text-align: left;
font-weight: normal;
font-size: 25px;
}
td {
padding: 5px;
border: 1px solid #dddddd;
text-align: left;
font-size: 18px; /* Reduced font size by 2 */
}
input[type='checkbox'] {
transform: scale(0.7);
margin-left: 40%; /* Adjusted margin to center the checkbox */
}
p {
font-family: arial, sans-serif;
width: 100%;
font-size: 18px; /* Reduced font size by 2 */
text-align: justify;
}
.footer {
text-align: right;
margin-right: 200px;
}
.remarks {
max-height: 100px; /* Set the maximum height for the div */
overflow: auto; /* Enable vertical scroll when content exceeds max height */
font-size: 12px;
text-align: justify;
}
</style>
</head>
<body>
<h1 style='font-size: 15px;text-align: center;'>Checklist Form</h1>
<p style='font-size: 15px;'>Department : </p>
<p style='font-size: 15px;'>Checked By : </p>
<table border='1%'>
<thead>
<tr>
<th style='padding: 5px; font-size: 14px;text-align: center; width: 80%;'>Recommendation</th>
<th style='font-size: 14px;text-align: center; '>Tick</th>
<th style='font-size: 14px;text-align: center;width: 70%;'>Remarks</th>
</tr>
</thead>
<tbody>
" & Concat(
Gallery1.AllItems,
" <tr><td><div class='remarks'><textarea>" & Recommendation & "</textarea></div></td><td></td><td></td></tr> "
) & "
</tbody>
</table>
<div class='footer'>
<p style='font-size: 15px;'>Approved By: </p>
</div>
</body>
</html>
"
Thank you for helping ! appreciate it so much!