Update pdfmake
This commit is contained in:
parent
4e6e3feee5
commit
61d70b09e8
7 changed files with 50490 additions and 32 deletions
|
|
@ -100,7 +100,8 @@ elixir(function(mix) {
|
||||||
mix.scripts([
|
mix.scripts([
|
||||||
'pdf_viewer.js',
|
'pdf_viewer.js',
|
||||||
'compatibility.js',
|
'compatibility.js',
|
||||||
bowerDir + '/pdfmake/build/pdfmake.js',
|
//bowerDir + '/pdfmake/build/pdfmake.js',
|
||||||
|
'pdfmake.js',
|
||||||
'vfs.js'
|
'vfs.js'
|
||||||
], 'public/pdf.built.js');
|
], 'public/pdf.built.js');
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
50468
public/js/pdfmake.js
Normal file
50468
public/js/pdfmake.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -158,11 +158,14 @@ function GetPdfMake(invoice, javascript, callback) {
|
||||||
dd.pageSize = invoice.account.page_size;
|
dd.pageSize = invoice.account.page_size;
|
||||||
|
|
||||||
if (invoice.watermark) {
|
if (invoice.watermark) {
|
||||||
|
/*
|
||||||
dd.watermark = {
|
dd.watermark = {
|
||||||
text: invoice.watermark,
|
text: invoice.watermark,
|
||||||
color: 'black',
|
color: 'black',
|
||||||
opacity: 0.04,
|
opacity: 0.04,
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
dd.watermark = invoice.watermark;
|
||||||
}
|
}
|
||||||
|
|
||||||
pdfMake.fonts = {}
|
pdfMake.fonts = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue