Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. var dd = {
  2. content: [
  3. {text: 'Timesheet/Work Completion Certificate\n\n', style: 'header', margin: [30,30,0,10]},
  4. {text: 'Contractor: ....................................................................................................\n\n', style: 'normal', margin: [30,0,0,5]},
  5. {text: 'Client: ............................................................................................................\n\n', style: 'normal', margin: [30,0,0,5]},
  6. {text: 'Month: ...........................................................................................................\n\n', style: 'normal', margin: [30,0,0,40]},
  7. {
  8. style: 'tableExample',
  9. table: {
  10. widths: ['*', '*', '*', 'auto','auto', '*', 'auto', '*', '*'],
  11. body: [
  12. ['',
  13. {
  14. fillColor: '#B8CCE4',
  15. text: 'Monday'
  16. },
  17. {
  18. fillColor: '#B8CCE4',
  19. text: 'Tuesday'
  20. },
  21. {
  22. fillColor: '#B8CCE4',
  23. text: 'Wednesday'
  24. },
  25. {
  26. fillColor: '#B8CCE4',
  27. text: 'Thursday'
  28. },
  29. {
  30. fillColor: '#B8CCE4',
  31. text: 'Friday'
  32. },
  33. {
  34. fillColor: '#B8CCE4',
  35. text: 'Saturday'
  36. },
  37. {
  38. fillColor: '#B8CCE4',
  39. text: 'Sunday'
  40. },
  41. {
  42. fillColor: '#B8CCE4',
  43. text: 'Week Total'
  44. }
  45. ],
  46. [{fillColor: '#B8CCE4',text: 'Week 1'}, '', '', '', '', '', '', '', 'Days'],
  47. [{fillColor: '#B8CCE4',text: 'Week 2'}, '', '', '', '', '', '', '', 'Days'],
  48. [{fillColor: '#B8CCE4',text: 'Week 3'}, '', '', '', '', '', '', '', 'Days'],
  49. [{fillColor: '#B8CCE4',text: 'Week 4'}, '', '', '', '', '', '', '', 'Days'],
  50. [{fillColor: '#B8CCE4',text: 'Week 5'}, '', '', '', '', '', '', '', 'Days']
  51. ]
  52. }
  53. },
  54. {
  55. margin: [0,20,0,0],
  56. columns: [
  57. {
  58. text: ''
  59. },
  60. {
  61. text: ''
  62. },
  63. {
  64. style: 'tableExample',
  65. table: {
  66. widths: ['auto', '*',],
  67. body: [
  68. ['Total Days Claimed', '']
  69. ]
  70. },
  71. layout: {
  72. hLineWidth: function (i, node) {
  73. return (i === 0 || i === node.table.body.length) ? 1.5 : 1;
  74. },
  75. vLineWidth: function (i, node) {
  76. return (i === 0 || i === node.table.widths.length) ? 1.5 : 1;
  77. },
  78. }
  79. },
  80. ]
  81. },
  82.  
  83. {text: 'Signed by\n\n', style: 'header', margin: [30,70,0,10]},
  84. {text: 'Client: ....................................................................................................\n\n', style: 'normal', margin: [30,0,0,5]},
  85. {text: 'Print Name: ...........................................................................................\n\n', style: 'normal', margin: [30,0,0,5]},
  86. {text: 'Date: ......................................................................................................\n\n', style: 'normal', margin: [30,0,0,5]},
  87. {text: 'These signatures confirm that the work is complete and the client is satisfied.\n\n', style: 'normal', margin: [30,0,0,5]},
  88. ],
  89. styles: {
  90. header: {
  91. bold: true,
  92. fontSize: 13
  93. },
  94. normal: {
  95. bold: false,
  96. fontSize: 12
  97. }
  98. },
  99. defaultStyle: {
  100. fontSize: 12
  101. },
  102. pageMargins: [ 40, 60, 40, 60 ]
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement