summaryrefslogtreecommitdiff
path: root/public/app/views/templates/create_pdf.php
diff options
context:
space:
mode:
authorGeo Xalkis <gx23100@gmail.com>2023-07-31 01:53:36 +0300
committerGeo Xalkis <gx23100@gmail.com>2023-07-31 01:53:36 +0300
commitd5746829da07894db10b01f12219cee78f8af882 (patch)
treeefc9c7c563f845f7770fe07a70d55c3564cfbf89 /public/app/views/templates/create_pdf.php
parentc6b6f89e7cda2621fd3d0dfa0768d010fc41d437 (diff)
downloadgyraf1gov-d5746829da07894db10b01f12219cee78f8af882.tar.gz
gyraf1gov-d5746829da07894db10b01f12219cee78f8af882.tar.bz2
gyraf1gov-d5746829da07894db10b01f12219cee78f8af882.zip
added protoocol on petition copiesHEADmasterdevelop
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