summaryrefslogtreecommitdiff
path: root/public/app/views/templates/create_pdf.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/app/views/templates/create_pdf.php')
-rw-r--r--public/app/views/templates/create_pdf.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/app/views/templates/create_pdf.php b/public/app/views/templates/create_pdf.php
index 2549cda..52be9ab 100644
--- a/public/app/views/templates/create_pdf.php
+++ b/public/app/views/templates/create_pdf.php
@@ -50,6 +50,7 @@
</body>
<script>
var data = <?=json_encode($petition, JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE)?>;
+console.log(data);
pdfMake.fonts = {
FiraSans: {
@@ -64,7 +65,7 @@ pdfMake.fonts = {
}
pdfMake.createPdf(
- designer( data.form_structure, data.form_structure.ref )
+ designer( data.form_structure, data.form_structure.ref, data.protocol )
).download('<?=$petition['signature']?>.pdf');
</script>
</html> \ No newline at end of file