Cloned Invoice Template to all places with Invoices and Quotes

This commit is contained in:
johnnyq
2021-04-06 21:25:25 -04:00
parent 04599c000d
commit 5cae50578d
2 changed files with 762 additions and 685 deletions
+157 -123
View File
@@ -247,35 +247,24 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
</div> </div>
<script src='plugins/pdfmake/pdfmake.js'></script> <script src='plugins/pdfmake/pdfmake.js'></script>
<script src='plugins/pdfmake/vfs_fonts.js'></script> <script src='plugins/pdfmake/vfs_fonts.js'></script>
<script>
<script> var docDefinition = {
// Invoice markup
// Author: Max Kostinevich
// BETA (no styles)
// http://pdfmake.org/playground.html
// playground requires you to assign document definition to a variable called dd
// CodeSandbox Example: https://codesandbox.io/s/pdfmake-invoice-oj81y
var docDefinition = {
info: { info: {
title: '<?php echo "$company_name - Quote"; ?>', title: '<?php echo "$company_name - Quote"; ?>',
author: '<?php echo $company_name; ?>' author: '<?php echo $company_name; ?>'
}, },
footer: { footer: {
columns: [ columns: [
{
{ text: '<?php echo $config_quote_footer; ?>', style: 'documentFooterCenter' }, text: <?php echo json_encode($config_quote_footer); ?>,
style: 'documentFooterCenter'
},
] ]
}, },
watermark: {text: '<?php echo $quote_status; ?>', color: 'grey', opacity: 0.3, bold: true, italics: false}, //watermark: {text: '<?php echo $quote_status; ?>', color: 'lightgrey', opacity: 0.3, bold: true, italics: false},
content: [ content: [
// Header // Header
@@ -290,33 +279,15 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
[ [
{ {
text: 'QUOTE', text: 'Quote',
style: 'invoiceTitle', style: 'invoiceTitle',
width: '*' width: '*'
}, },
{ {
stack: [ text: '<?php echo "$quote_prefix$quote_number"; ?>',
{ style: 'invoiceNumber',
columns: [
{
text:'<?php echo "$quote_prefix$quote_number"; ?>',
style:'invoiceSubValue',
width: '*' width: '*'
}, },
]
},
{
columns: [
{
text:'<?php echo $quote_date ?>',
style:'invoiceSubValue',
width: '*'
}
]
},
]
}
], ],
], ],
}, },
@@ -324,30 +295,61 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
{ {
columns: [ columns: [
{ {
text: '<?php echo $company_name; ?>', text: <?php echo json_encode($company_name); ?>,
style:'invoiceBillingTitle', style:'invoiceBillingTitle',
}, },
{ {
text: '<?php echo $client_name; ?>', text: <?php echo json_encode($client_name); ?>,
style:'invoiceBillingTitle', style:'invoiceBillingTitleClient',
}, },
] ]
}, },
// Billing Address
{ {
columns: [ columns: [
{ {
text: '<?php echo $company_address; ?> \n <?php echo "$company_city $company_state $company_zip"; ?> \n \n <?php echo $company_phone; ?> \n <?php echo $company_website; ?>', text: <?php echo json_encode("$company_address \n $company_city $company_state $company_zip \n $company_phone \n $company_website"); ?>,
style: 'invoiceBillingAddress' style: 'invoiceBillingAddress'
}, },
{ {
text: '<?php echo $client_address; ?> \n <?php echo "$client_city $client_state $client_zip"; ?> \n \n <?php echo $client_email; ?> \n <?php echo $client_phone; ?>', text: <?php echo json_encode("$client_address \n $client_city $client_state $client_zip \n $client_email \n $client_phone"); ?>,
style: 'invoiceBillingAddress' style: 'invoiceBillingAddressClient'
}, },
] ]
}, },
//Invoice Dates Table
{
table: {
// headers are automatically repeated if the table spans over multiple pages
// you can declare how many rows should be treated as headers
headerRows: 0,
widths: [ '*',80, 80 ],
body: [
// Total
[
{
text:'',
rowSpan: 2
},
{},
{},
],
[
{},
{
text:'Quote Date',
style:'invoiceDateTitle',
},
{
text:'<?php echo $quote_date ?>',
style:'invoiceDateValue',
},
],
]
}, // table
layout: 'lightHorizontalLines'
},
// Line breaks // Line breaks
'\n\n', '\n\n',
// Items // Items
@@ -363,7 +365,7 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
[ [
{ {
text: 'Product', text: 'Product',
style: 'itemsHeader' style: [ 'itemsHeader', 'left']
}, },
{ {
text: 'Qty', text: 'Qty',
@@ -371,15 +373,15 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
}, },
{ {
text: 'Price', text: 'Price',
style: [ 'itemsHeader', 'center'] style: [ 'itemsHeader', 'right']
}, },
{ {
text: 'Tax', text: 'Tax',
style: [ 'itemsHeader', 'center'] style: [ 'itemsHeader', 'right']
}, },
{ {
text: 'Total', text: 'Total',
style: [ 'itemsHeader', 'center'] style: [ 'itemsHeader', 'right']
} }
], ],
// Items // Items
@@ -402,49 +404,45 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
$total_tax = number_format($total_tax,2); $total_tax = number_format($total_tax,2);
$sub_total = $item_price * $item_quantity + $sub_total; $sub_total = $item_price * $item_quantity + $sub_total;
$sub_total = number_format($sub_total, 2); $sub_total = number_format($sub_total, 2);
echo " ?>
// Item 1 // Item
[ [
[ [
{ {
text: '$item_name', text: <?php echo json_encode($item_name); ?>,
style:'itemTitle' style:'itemTitle'
}, },
{ {
text: '$item_description', text: <?php echo json_encode($item_description); ?>,
style:'itemSubTitle' style:'itemDescription'
} }
], ],
{ {
text:'$item_quantity', text:'<?php echo $item_quantity; ?>',
style:'itemQty'
},
{
text:'$<?php echo $item_price; ?>',
style:'itemNumber' style:'itemNumber'
}, },
{ {
text:'$$item_price', text:'$<?php echo $item_tax; ?>',
style:'itemNumber' style:'itemNumber'
}, },
{ {
text:'$$item_tax', text: '$<?php echo $item_total; ?>',
style:'itemNumber' style:'itemNumber'
},
{
text: '$$item_total',
style:'itemTotal'
} }
], ],
"; <?php
} }
?> ?>
// END Items // END Items
] ]
}, // table }, // table
// layout: 'lightHorizontalLines' layout: 'lightHorizontalLines'
}, },
// TOTAL // TOTAL
{ {
@@ -452,11 +450,24 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
// headers are automatically repeated if the table spans over multiple pages // headers are automatically repeated if the table spans over multiple pages
// you can declare how many rows should be treated as headers // you can declare how many rows should be treated as headers
headerRows: 0, headerRows: 0,
widths: [ '*', 80 ], widths: [ '*','auto', 80 ],
body: [ body: [
// Total // Total
[ [
{
text: 'Notes',
style:'notesTitle'
},
{},
{}
],
[
{
rowSpan: 3,
text: <?php echo json_encode($quote_note); ?>,
style:'notesText'
},
{ {
text:'Subtotal', text:'Subtotal',
style:'itemsFooterSubTitle' style:'itemsFooterSubTitle'
@@ -467,60 +478,49 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
} }
], ],
[ [
{},
{ {
text:'Tax', text:'Tax',
style:'itemsFooterSubTitle' style:'itemsFooterSubTitle'
}, },
{ {
text: '$<?php echo $total_tax; ?>', text: '$<?php echo number_format($total_tax,2); ?>',
style:'itemsFooterSubValue' style:'itemsFooterSubValue'
} }
], ],
[ [
{},
{ {
text:'TOTAL', text:'Total',
style:'itemsFooterTotalTitle' style:'itemsFooterSubTitle'
}, },
{ {
text: '$<?php echo $quote_amount; ?>', text: '$<?php echo number_format($quote_amount,2); ?>',
style:'itemsFooterTotalValue' style:'itemsFooterSubValue'
} }
], ],
] ]
}, // table }, // table
layout: 'lightHorizontalLines' layout: 'lightHorizontalLines'
},
{
text: 'NOTES',
style:'notesTitle'
},
{
text: '<?php ?>',
style:'notesText'
} }
], ], //End Content,
styles: { styles: {
// Document Footer // Document Footer
documentFooterCenter: { documentFooterCenter: {
fontSize: 10, fontSize: 9,
margin: [5,5,5,5], margin: [10,10,10,10],
alignment:'center' alignment:'center'
}, },
// Invoice Title // Invoice Title
invoiceTitle: { invoiceTitle: {
fontSize: 22, fontSize: 18,
bold: true, bold: true,
alignment:'right', alignment:'right',
margin:[0,0,0,15] margin:[0,0,0,3]
}, },
// Invoice Details // Invoice Number
invoiceSubTitle: { invoiceNumber: {
fontSize: 12, fontSize: 14,
alignment:'right'
},
invoiceSubValue: {
fontSize: 12,
alignment:'right' alignment:'right'
}, },
// Billing Headers // Billing Headers
@@ -528,71 +528,106 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
fontSize: 14, fontSize: 14,
bold: true, bold: true,
alignment:'left', alignment:'left',
margin:[0,20,0,5], margin:[0,20,0,5]
},
invoiceBillingTitleClient: {
fontSize: 14,
bold: true,
alignment:'right',
margin:[0,20,0,5]
}, },
// Billing Details // Billing Details
invoiceBillingDetails: {
alignment:'left'
},
invoiceBillingAddressTitle: {
margin: [0,7,0,3],
bold: true
},
invoiceBillingAddress: { invoiceBillingAddress: {
fontSize: 10,
lineHeight: 1.2
},
invoiceBillingAddressClient: {
fontSize: 10,
lineHeight: 1.2,
alignment:'right',
margin:[0,0,0,30]
},
// Invoice Dates
invoiceDateTitle: {
fontSize: 10,
alignment:'left',
margin:[0,5,0,5]
},
invoiceDateValue: {
fontSize: 10,
alignment:'right',
margin:[0,5,0,5]
}, },
// Items Header // Items Header
itemsHeader: { itemsHeader: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
bold: true bold: true,
alignment:'right'
}, },
// Item Title // Item Title
itemTitle: { itemTitle: {
fontSize: 10,
bold: true, bold: true,
margin: [0,5,0,3]
}, },
itemSubTitle: { itemDescription: {
italics: true, italics: true,
fontSize: 11 fontSize: 9,
lineHeight: 1.1,
margin: [0,3,0,5]
},
itemQty: {
fontSize: 10,
margin: [0,5,0,5],
alignment: 'center',
}, },
itemNumber: { itemNumber: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
alignment: 'center', alignment: 'right',
}, },
itemTotal: { itemTotal: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
bold: true, bold: true,
alignment: 'center', alignment: 'right',
}, },
// Items Footer (Subtotal, Total, Tax, etc) // Items Footer (Subtotal, Total, Tax, etc)
itemsFooterSubTitle: { itemsFooterSubTitle: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
bold: true,
alignment:'right', alignment:'right',
}, },
itemsFooterSubValue: { itemsFooterSubValue: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
bold: true, bold: false,
alignment:'center', alignment:'right',
}, },
itemsFooterTotalTitle: { itemsFooterTotalTitle: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
bold: true, bold: true,
alignment:'right', alignment:'right',
}, },
itemsFooterTotalValue: { itemsFooterTotalValue: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
bold: true, bold: true,
alignment:'center', alignment:'right',
}, },
notesTitle: { notesTitle: {
fontSize: 10, fontSize: 10,
bold: true, bold: true,
margin: [0,50,0,3], margin: [0,5,0,5],
}, },
notesText: { notesText: {
fontSize: 10 fontSize: 9,
margin: [0,5,50,5]
},
left: {
alignment:'left',
}, },
center: { center: {
alignment:'center', alignment:'center',
@@ -601,9 +636,8 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
defaultStyle: { defaultStyle: {
columnGap: 20, columnGap: 20,
} }
}; }
</script>
</script>
<?php <?php
}else{ }else{
+153 -110
View File
@@ -396,7 +396,6 @@ include("footer.php");
<script src='plugins/pdfmake/pdfmake.js'></script> <script src='plugins/pdfmake/pdfmake.js'></script>
<script src='plugins/pdfmake/vfs_fonts.js'></script> <script src='plugins/pdfmake/vfs_fonts.js'></script>
<script> <script>
var docDefinition = { var docDefinition = {
@@ -404,17 +403,16 @@ var docDefinition = {
title: '<?php echo "$company_name - Quote"; ?>', title: '<?php echo "$company_name - Quote"; ?>',
author: '<?php echo $company_name; ?>' author: '<?php echo $company_name; ?>'
}, },
footer: { footer: {
columns: [ columns: [
{
{ text: '<?php echo $config_quote_footer; ?>', style: 'documentFooterCenter' }, text: <?php echo json_encode($config_quote_footer); ?>,
style: 'documentFooterCenter'
},
] ]
}, },
watermark: {text: '<?php echo $quote_status; ?>', color: 'grey', opacity: 0.3, bold: true, italics: false}, //watermark: {text: '<?php echo $quote_status; ?>', color: 'lightgrey', opacity: 0.3, bold: true, italics: false},
content: [ content: [
// Header // Header
@@ -429,33 +427,15 @@ var docDefinition = {
[ [
{ {
text: 'QUOTE', text: 'Quote',
style: 'invoiceTitle', style: 'invoiceTitle',
width: '*' width: '*'
}, },
{ {
stack: [ text: '<?php echo "$quote_prefix$quote_number"; ?>',
{ style: 'invoiceNumber',
columns: [
{
text:'<?php echo "$quote_prefix$quote_number"; ?>',
style:'invoiceSubValue',
width: '*' width: '*'
}, },
]
},
{
columns: [
{
text:'<?php echo $quote_date ?>',
style:'invoiceSubValue',
width: '*'
}
]
},
]
}
], ],
], ],
}, },
@@ -463,30 +443,61 @@ var docDefinition = {
{ {
columns: [ columns: [
{ {
text: '<?php echo $company_name; ?>', text: <?php echo json_encode($company_name); ?>,
style:'invoiceBillingTitle', style:'invoiceBillingTitle',
}, },
{ {
text: '<?php echo $client_name; ?>', text: <?php echo json_encode($client_name); ?>,
style:'invoiceBillingTitle', style:'invoiceBillingTitleClient',
}, },
] ]
}, },
// Billing Address
{ {
columns: [ columns: [
{ {
text: '<?php echo $company_address; ?> \n <?php echo "$company_city $company_state $company_zip"; ?> \n \n <?php echo $company_phone; ?> \n <?php echo $company_website; ?>', text: <?php echo json_encode("$company_address \n $company_city $company_state $company_zip \n $company_phone \n $company_website"); ?>,
style: 'invoiceBillingAddress' style: 'invoiceBillingAddress'
}, },
{ {
text: '<?php echo $client_address; ?> \n <?php echo "$client_city $client_state $client_zip"; ?> \n \n <?php echo $client_email; ?> \n <?php echo $client_phone; ?>', text: <?php echo json_encode("$client_address \n $client_city $client_state $client_zip \n $client_email \n $client_phone"); ?>,
style: 'invoiceBillingAddress' style: 'invoiceBillingAddressClient'
}, },
] ]
}, },
//Invoice Dates Table
{
table: {
// headers are automatically repeated if the table spans over multiple pages
// you can declare how many rows should be treated as headers
headerRows: 0,
widths: [ '*',80, 80 ],
body: [
// Total
[
{
text:'',
rowSpan: 2
},
{},
{},
],
[
{},
{
text:'Quote Date',
style:'invoiceDateTitle',
},
{
text:'<?php echo $quote_date ?>',
style:'invoiceDateValue',
},
],
]
}, // table
layout: 'lightHorizontalLines'
},
// Line breaks // Line breaks
'\n\n', '\n\n',
// Items // Items
@@ -502,7 +513,7 @@ var docDefinition = {
[ [
{ {
text: 'Product', text: 'Product',
style: 'itemsHeader' style: [ 'itemsHeader', 'left']
}, },
{ {
text: 'Qty', text: 'Qty',
@@ -510,15 +521,15 @@ var docDefinition = {
}, },
{ {
text: 'Price', text: 'Price',
style: [ 'itemsHeader', 'center'] style: [ 'itemsHeader', 'right']
}, },
{ {
text: 'Tax', text: 'Tax',
style: [ 'itemsHeader', 'center'] style: [ 'itemsHeader', 'right']
}, },
{ {
text: 'Total', text: 'Total',
style: [ 'itemsHeader', 'center'] style: [ 'itemsHeader', 'right']
} }
], ],
// Items // Items
@@ -541,49 +552,45 @@ var docDefinition = {
$total_tax = number_format($total_tax,2); $total_tax = number_format($total_tax,2);
$sub_total = $item_price * $item_quantity + $sub_total; $sub_total = $item_price * $item_quantity + $sub_total;
$sub_total = number_format($sub_total, 2); $sub_total = number_format($sub_total, 2);
echo " ?>
// Item 1 // Item
[ [
[ [
{ {
text: '$item_name', text: <?php echo json_encode($item_name); ?>,
style:'itemTitle' style:'itemTitle'
}, },
{ {
text: '$item_description', text: <?php echo json_encode($item_description); ?>,
style:'itemSubTitle' style:'itemDescription'
} }
], ],
{ {
text:'$item_quantity', text:'<?php echo $item_quantity; ?>',
style:'itemQty'
},
{
text:'$<?php echo $item_price; ?>',
style:'itemNumber' style:'itemNumber'
}, },
{ {
text:'$$item_price', text:'$<?php echo $item_tax; ?>',
style:'itemNumber' style:'itemNumber'
}, },
{ {
text:'$$item_tax', text: '$<?php echo $item_total; ?>',
style:'itemNumber' style:'itemNumber'
},
{
text: '$$item_total',
style:'itemTotal'
} }
], ],
"; <?php
} }
?> ?>
// END Items // END Items
] ]
}, // table }, // table
// layout: 'lightHorizontalLines' layout: 'lightHorizontalLines'
}, },
// TOTAL // TOTAL
{ {
@@ -591,11 +598,24 @@ var docDefinition = {
// headers are automatically repeated if the table spans over multiple pages // headers are automatically repeated if the table spans over multiple pages
// you can declare how many rows should be treated as headers // you can declare how many rows should be treated as headers
headerRows: 0, headerRows: 0,
widths: [ '*', 80 ], widths: [ '*','auto', 80 ],
body: [ body: [
// Total // Total
[ [
{
text: 'Notes',
style:'notesTitle'
},
{},
{}
],
[
{
rowSpan: 3,
text: <?php echo json_encode($quote_note); ?>,
style:'notesText'
},
{ {
text:'Subtotal', text:'Subtotal',
style:'itemsFooterSubTitle' style:'itemsFooterSubTitle'
@@ -606,60 +626,49 @@ var docDefinition = {
} }
], ],
[ [
{},
{ {
text:'Tax', text:'Tax',
style:'itemsFooterSubTitle' style:'itemsFooterSubTitle'
}, },
{ {
text: '$<?php echo $total_tax; ?>', text: '$<?php echo number_format($total_tax,2); ?>',
style:'itemsFooterSubValue' style:'itemsFooterSubValue'
} }
], ],
[ [
{},
{ {
text:'TOTAL', text:'Total',
style:'itemsFooterTotalTitle' style:'itemsFooterSubTitle'
}, },
{ {
text: '$<?php echo $quote_amount; ?>', text: '$<?php echo number_format($quote_amount,2); ?>',
style:'itemsFooterTotalValue' style:'itemsFooterSubValue'
} }
], ],
] ]
}, // table }, // table
layout: 'lightHorizontalLines' layout: 'lightHorizontalLines'
},
{
text: 'NOTES',
style:'notesTitle'
},
{
text: '<?php ?>',
style:'notesText'
} }
], ], //End Content,
styles: { styles: {
// Document Footer // Document Footer
documentFooterCenter: { documentFooterCenter: {
fontSize: 10, fontSize: 9,
margin: [5,5,5,5], margin: [10,10,10,10],
alignment:'center' alignment:'center'
}, },
// Invoice Title // Invoice Title
invoiceTitle: { invoiceTitle: {
fontSize: 22, fontSize: 18,
bold: true, bold: true,
alignment:'right', alignment:'right',
margin:[0,0,0,15] margin:[0,0,0,3]
}, },
// Invoice Details // Invoice Number
invoiceSubTitle: { invoiceNumber: {
fontSize: 12, fontSize: 14,
alignment:'right'
},
invoiceSubValue: {
fontSize: 12,
alignment:'right' alignment:'right'
}, },
// Billing Headers // Billing Headers
@@ -667,71 +676,106 @@ var docDefinition = {
fontSize: 14, fontSize: 14,
bold: true, bold: true,
alignment:'left', alignment:'left',
margin:[0,20,0,5], margin:[0,20,0,5]
},
invoiceBillingTitleClient: {
fontSize: 14,
bold: true,
alignment:'right',
margin:[0,20,0,5]
}, },
// Billing Details // Billing Details
invoiceBillingDetails: {
alignment:'left'
},
invoiceBillingAddressTitle: {
margin: [0,7,0,3],
bold: true
},
invoiceBillingAddress: { invoiceBillingAddress: {
fontSize: 10,
lineHeight: 1.2
},
invoiceBillingAddressClient: {
fontSize: 10,
lineHeight: 1.2,
alignment:'right',
margin:[0,0,0,30]
},
// Invoice Dates
invoiceDateTitle: {
fontSize: 10,
alignment:'left',
margin:[0,5,0,5]
},
invoiceDateValue: {
fontSize: 10,
alignment:'right',
margin:[0,5,0,5]
}, },
// Items Header // Items Header
itemsHeader: { itemsHeader: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
bold: true bold: true,
alignment:'right'
}, },
// Item Title // Item Title
itemTitle: { itemTitle: {
fontSize: 10,
bold: true, bold: true,
margin: [0,5,0,3]
}, },
itemSubTitle: { itemDescription: {
italics: true, italics: true,
fontSize: 11 fontSize: 9,
lineHeight: 1.1,
margin: [0,3,0,5]
},
itemQty: {
fontSize: 10,
margin: [0,5,0,5],
alignment: 'center',
}, },
itemNumber: { itemNumber: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
alignment: 'center', alignment: 'right',
}, },
itemTotal: { itemTotal: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
bold: true, bold: true,
alignment: 'center', alignment: 'right',
}, },
// Items Footer (Subtotal, Total, Tax, etc) // Items Footer (Subtotal, Total, Tax, etc)
itemsFooterSubTitle: { itemsFooterSubTitle: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
bold: true,
alignment:'right', alignment:'right',
}, },
itemsFooterSubValue: { itemsFooterSubValue: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
bold: true, bold: false,
alignment:'center', alignment:'right',
}, },
itemsFooterTotalTitle: { itemsFooterTotalTitle: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
bold: true, bold: true,
alignment:'right', alignment:'right',
}, },
itemsFooterTotalValue: { itemsFooterTotalValue: {
fontSize: 10,
margin: [0,5,0,5], margin: [0,5,0,5],
bold: true, bold: true,
alignment:'center', alignment:'right',
}, },
notesTitle: { notesTitle: {
fontSize: 10, fontSize: 10,
bold: true, bold: true,
margin: [0,50,0,3], margin: [0,5,0,5],
}, },
notesText: { notesText: {
fontSize: 10 fontSize: 9,
margin: [0,5,50,5]
},
left: {
alignment:'left',
}, },
center: { center: {
alignment:'center', alignment:'center',
@@ -740,6 +784,5 @@ var docDefinition = {
defaultStyle: { defaultStyle: {
columnGap: 20, columnGap: 20,
} }
}; }
</script> </script>