Array Iteration - TEMPLATES-SAMPLES
PDF from HTML Template sample in TEMPLATES-SAMPLES demonstrating ‘Array Iteration’
template.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TODO List</title>
</head>
<body>
<table>
<thead>
<tr>
<th>Task Name</th>
<th>Status</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{{#each inputArr}}
<tr>
<td>{{this.Name}}</td>
<td>{{this.Status}}</td>
<td>{{this.Description}}</td>
</tr>
{{/each}}
</tbody>
</table>
</body>
</html>
PDF.co Web API: the Web API with a set of tools for documents manipulation, data conversion, data extraction, splitting and merging of documents. Includes image recognition, built-in OCR, barcode generation and barcode decoders to decode bar codes from scans, pictures and pdf.
Download Source Code (.zip)
return to the previous page explore PDF from HTML Template endpoint
Copyright © 2016 - 2023 PDF.co