Last active
September 7, 2017 15:02
-
-
Save abernardobr/c21dd95111ad3c63f6133c640f8a9e54 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
const Path = require('path'); | |
var fonts = { | |
Roboto: { | |
normal: Path.join(__dirname, 'fonts/Roboto-Regular.ttf'), | |
bold: Path.join(__dirname, 'fonts/Roboto-Medium.ttf'), | |
italics: Path.join(__dirname, 'fonts/Roboto-Italic.ttf'), | |
bolditalics: Path.join(__dirname, 'fonts/Roboto-MediumItalic.ttf') | |
} | |
}; | |
const PdfPrinter = require('../src/printer'); | |
const Printer = new PdfPrinter(fonts); | |
const FS = require('fs'); | |
// margin: [left, top, right, bottom] | |
const docDefinition = { | |
pageSize: 'A4', | |
pageMargins: [ 23, 23, 23, 33], | |
content: [ | |
{ | |
table: { | |
headerRows: 1, | |
widths: [ '100%' ], | |
body: [ | |
[ | |
{ | |
text: 'SYSTEMS', | |
style: ['h1'] | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 1, | |
widths: [ '100%' ], | |
body: [ | |
[ | |
{ | |
text: 'WET SYSTEMS (2)', | |
style: ['h1'] | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '100%' ], | |
body: [ | |
[ | |
{ | |
table: { | |
headerRows: 1, | |
widths: [ '90%', '10%'], | |
dontBreakRows: true, | |
body: [ | |
[ | |
{ | |
text: 'WET SYSTEM 1', | |
style: ['h1Gray'] | |
}, | |
{ text: '', fillColor: '#e4e0e7' } | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
] | |
] | |
} | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '100%' ], | |
body: [ | |
[ | |
{ | |
table: { | |
headerRows: 1, | |
widths: [ '90%', '10%'], | |
dontBreakRows: true, | |
body: [ | |
[ | |
{ | |
text: 'WET SYSTEM 2', | |
style: ['h1Gray'] | |
}, | |
{ text: '', fillColor: '#e4e0e7' } | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '100.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'This is very huge and big question with loren is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'YES', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
], | |
[ | |
{ | |
table: { | |
headerRows: 0, | |
widths: [ '3%', '97%'], | |
body: [ | |
[ | |
{ | |
text: '2.', | |
style: 'questionNum' | |
}, | |
{ | |
text: 'GENERAL', | |
style: 'question' | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
}, | |
{ | |
table: { | |
headerRows: 0, | |
widths: ['100%'], | |
body: [ | |
[ | |
{ | |
border: [false, false, false, false], | |
text: 'NO', | |
style: 'answer' | |
} | |
] | |
] | |
} | |
} | |
] | |
] | |
} | |
} | |
] | |
] | |
}, | |
layout: 'noBorders' | |
} | |
] | |
] | |
} | |
} | |
] | |
] | |
} | |
} | |
], | |
styles: { | |
h1: { | |
color: 'white', | |
fillColor: '#000000', | |
fontSize: 8, | |
alignment: 'left' | |
}, | |
h1Gray: { | |
color: 'black', | |
fillColor: '#e4e0e7', | |
fontSize: 8, | |
alignment: 'left' | |
}, | |
normalBold: { | |
fontSize: 8, | |
bold: true | |
}, | |
normal: { | |
fontSize: 8 | |
}, | |
question: { | |
color: 'black', | |
fontSize: 6, | |
alignment: 'left' | |
}, | |
answer: { | |
alignment: 'center', | |
bold: true, | |
fillCollor: '#e4e0e7', | |
color: 'black', | |
fontSize: 6 | |
}, | |
questionNum: { | |
color: 'black', | |
fontSize: 6, | |
bold: true | |
}, | |
header: { | |
color: 'white', | |
fillColor: '#000000' | |
}, | |
font6: { | |
fontSize: 6 | |
}, | |
font8: { | |
fontSize: 8 | |
}, | |
left: { | |
alignment: 'left' | |
}, | |
right: { | |
alignment: 'right' | |
} | |
} | |
}; | |
let pdfDoc = Printer.createPdfKitDocument(docDefinition); | |
let pdfFile = Path.join(__dirname, 'pdfs/nfpa75.pdf'); | |
pdfDoc.pipe(FS.createWriteStream(pdfFile)); | |
pdfDoc.end(); | |
const Report = require('./report'); | |
let report = new Report(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment