-
Notifications
You must be signed in to change notification settings - Fork 1
/
template_pdf.html
115 lines (106 loc) · 2.14 KB
/
template_pdf.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
@page {
size: A4;
margin: 1cm;
}
p {
text-align: center;
}
h2 {
text-align: center;
}
table {
border-collapse: collapse;
width: 90%;
border: 1px solid black;
margin: auto;
}
tr {
height: 46px;
}
td,
th {
padding: 0.6em;
width: 25%;
height: 3em;
border: 1px solid black;
}
img {
display: block;
margin: auto;
width: 100%;
}
</style>
</head>
<body>
<p> </p>
<h2><strong>{{Titolo_tabella}}</strong></h2>
<table>
<tbody>
<tr>
<th>Description</th>
<th>Number of pixels</th>
<th>Volume [mm³]</th>
<th>Percentage</th>
</tr>
<tr>
<td>Total volume left</td>
<td>{{n_pix_1}}</td>
<td>{{vol_1}}</td>
<td>{{perc_1}}</td>
</tr>
<tr>
<td>Low perfusion volume left</td>
<td>{{n_pix_2}}</td>
<td>{{vol_2}}</td>
<td>{{perc_2}}</td>
</tr>
<tr>
<td>Total volume right</td>
<td>{{n_pix_3}}</td>
<td>{{vol_3}}</td>
<td>{{perc_3}}</td>
</tr>
<tr>
<td>Low perfusion volume right</td>
<td>{{n_pix_4}}</td>
<td>{{vol_4}}</td>
<td>{{perc_4}}</td>
</tr>
<tr>
<td>Left V -1000/-770</td>
<td>{{n_pix_5}}</td>
<td>{{vol_5}}</td>
<td>{{perc_5}}</td>
</tr>
<tr>
<td>Left V -1000/-920</td>
<td>{{n_pix_6}}</td>
<td>{{vol_6}}</td>
<td>{{perc_6}}</td>
</tr>
<tr>
<td>Right V -1000/-770</td>
<td>{{n_pix_7}}</td>
<td>{{vol_7}}</td>
<td>{{perc_7}}</td>
</tr>
<tr>
<td>Right V -1000/-920</td>
<td>{{n_pix_8}}</td>
<td>{{vol_8}}</td>
<td>{{perc_8}}</td>
</tr>
</tbody>
</table>
<p> </p>
<p> </p>
<p>
<img src="{{src}}" />
</p>
</body>
</html>