Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dd = {
- content: [
- {text: 'Timesheet/Work Completion Certificate\n\n', style: 'header', margin: [30,30,0,10]},
- {text: 'Contractor: ....................................................................................................\n\n', style: 'normal', margin: [30,0,0,5]},
- {text: 'Client: ............................................................................................................\n\n', style: 'normal', margin: [30,0,0,5]},
- {text: 'Month: ...........................................................................................................\n\n', style: 'normal', margin: [30,0,0,40]},
- {
- style: 'tableExample',
- table: {
- widths: ['*', '*', '*', 'auto','auto', '*', 'auto', '*', '*'],
- body: [
- ['',
- {
- fillColor: '#B8CCE4',
- text: 'Monday'
- },
- {
- fillColor: '#B8CCE4',
- text: 'Tuesday'
- },
- {
- fillColor: '#B8CCE4',
- text: 'Wednesday'
- },
- {
- fillColor: '#B8CCE4',
- text: 'Thursday'
- },
- {
- fillColor: '#B8CCE4',
- text: 'Friday'
- },
- {
- fillColor: '#B8CCE4',
- text: 'Saturday'
- },
- {
- fillColor: '#B8CCE4',
- text: 'Sunday'
- },
- {
- fillColor: '#B8CCE4',
- text: 'Week Total'
- }
- ],
- [{fillColor: '#B8CCE4',text: 'Week 1'}, '', '', '', '', '', '', '', 'Days'],
- [{fillColor: '#B8CCE4',text: 'Week 2'}, '', '', '', '', '', '', '', 'Days'],
- [{fillColor: '#B8CCE4',text: 'Week 3'}, '', '', '', '', '', '', '', 'Days'],
- [{fillColor: '#B8CCE4',text: 'Week 4'}, '', '', '', '', '', '', '', 'Days'],
- [{fillColor: '#B8CCE4',text: 'Week 5'}, '', '', '', '', '', '', '', 'Days']
- ]
- }
- },
- {
- margin: [0,20,0,0],
- columns: [
- {
- text: ''
- },
- {
- text: ''
- },
- {
- style: 'tableExample',
- table: {
- widths: ['auto', '*',],
- body: [
- ['Total Days Claimed', '']
- ]
- },
- layout: {
- hLineWidth: function (i, node) {
- return (i === 0 || i === node.table.body.length) ? 1.5 : 1;
- },
- vLineWidth: function (i, node) {
- return (i === 0 || i === node.table.widths.length) ? 1.5 : 1;
- },
- }
- },
- ]
- },
- {text: 'Signed by\n\n', style: 'header', margin: [30,70,0,10]},
- {text: 'Client: ....................................................................................................\n\n', style: 'normal', margin: [30,0,0,5]},
- {text: 'Print Name: ...........................................................................................\n\n', style: 'normal', margin: [30,0,0,5]},
- {text: 'Date: ......................................................................................................\n\n', style: 'normal', margin: [30,0,0,5]},
- {text: 'These signatures confirm that the work is complete and the client is satisfied.\n\n', style: 'normal', margin: [30,0,0,5]},
- ],
- styles: {
- header: {
- bold: true,
- fontSize: 13
- },
- normal: {
- bold: false,
- fontSize: 12
- }
- },
- defaultStyle: {
- fontSize: 12
- },
- pageMargins: [ 40, 60, 40, 60 ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement