-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.js
More file actions
32 lines (26 loc) · 724 Bytes
/
Copy pathtemplate.js
File metadata and controls
32 lines (26 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
let template = {
createTitle : function(doc,title){
doc.fontSize(20).text(title,{
align:"center",
underline:true,
height:300,
});
},
addNameDate : function(doc){
doc.fontSize(14).moveDown();
doc.fontSize(14).text("Name:______________ Date:_______________");
doc.moveDown().moveDown();
doc.fontSize(12);
},
addBorder : function(doc){
doc.rect(10,10,590,770).stroke();
},
addLogo : function(doc){
doc.fontSize(6);
doc.fillColor("grey");
doc.text("Copyright SL",500,700,{
lineBreak:false
});
}
};
module.exports = template;