Created
May 25, 2017 07:14
-
-
Save bhavjot/b54c81f38ccd874e5f50c41d490519c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@section Scripts { | |
<script src="~/Scripts/tcp/pdfmake.min.js"></script> | |
<script src="~/Scripts/tcp/vfs_fonts.js"></script> | |
<script type="text/javascript"> | |
$(function () { | |
$('.form-horizontal :input').attr('disabled', 'disabled'); | |
}); | |
function printPdfMake() { | |
var docDefinition = { | |
content: | |
[ | |
{ text: 'What is being withdrawn?', style: 'subheader' }, | |
{ | |
table: { | |
widths:[200,200], | |
body: | |
[ | |
['Type','Application'] | |
] | |
} | |
}, | |
{ text: 'Application/Authority Information', style: 'subheader' }, | |
{ | |
table: { | |
widths: [200, 200], | |
body: | |
[ | |
['Type', 'MLA'], | |
['Number', '23423453'], | |
['Act', '1998'] | |
] | |
} | |
} | |
], | |
styles: { | |
header: { | |
fontSize: 18, | |
bold: true, | |
margin: [0, 0, 0, 10] | |
}, | |
subheader: { | |
fontSize: 16, | |
bold: true, | |
margin: [0, 10, 0, 5] | |
} | |
} | |
}; | |
pdfMake.createPdf(docDefinition).open(); | |
} | |
</script> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment