Skip to content

Instantly share code, notes, and snippets.

@bhavjot
Created May 25, 2017 07:14
Show Gist options
  • Save bhavjot/b54c81f38ccd874e5f50c41d490519c4 to your computer and use it in GitHub Desktop.
Save bhavjot/b54c81f38ccd874e5f50c41d490519c4 to your computer and use it in GitHub Desktop.
@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