Workflow 2: Create & store a PDF report
Basic concepts
Create a PDF template
{
"description": "Template used to generate a pdf-analysis",
"inputs": {
"first_name": {
"type": "string"
},
"category": {
"type": "string"
},
"diastolic": {
"type": "number"
},
"systolic": {
"type": "number"
},
"date": {
"type": "string"
}
}
}<!DOCTYPE html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
</style>
</head>
<html>
<body>
<h1>Your reading from {{@inputs.date}}</h1>
<table style="width:100%">
<tr>
<th>Diastolic</th>
<td>{{@inputs.diastolic}}</td>
</tr>
<tr>
<th>Systolic</th>
<td>{{@inputs.systolic}}</td>
</tr>
<tr>
<th>Category</th>
<td>{{@inputs.category}}</td>
</tr>
</table>Update schema
Update your task to create a PDF
Deploy everything
Test the updated task
Test your task locally
Last updated