-
Notifications
You must be signed in to change notification settings - Fork 0
/
Memoria.js
36 lines (32 loc) · 1002 Bytes
/
Memoria.js
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
33
34
35
36
exports.header = {
height: "1cm",
contents: function(pageNum, numPages) {
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth() + 1; //January is 0!
var yyyy = today.getFullYear();
if (dd < 10) {
dd = '0' + dd
}
if (mm < 10) {
mm = '0' + mm
}
today = dd + '/' + mm + '/' + yyyy;
if (pageNum > 1) {
return "<p style=\"font-size: x-small; color:Grey;\">Aythami Estévez Olivas <span style='float:right'>" + today + "</span></p>"
} else {
return
}
}
};
exports.footer = {
height: "1cm",
contents: function(pageNum, numPages) {
if (pageNum > 1) {
return "<p style=\"font-size: x-small; color:Grey;\">Sistemas Inteligentes para la Gestión en la Empresa<span style='float:right'>" +
pageNum + " / " + numPages + "</span></p>"
} else {
return
}
}
};