Skip to content

Commit

Permalink
Imagens dos modelos:
Browse files Browse the repository at this point in the history
Absolute path acquired
  • Loading branch information
daniel-santana authored and lubien committed Jul 6, 2019
1 parent 49edb19 commit 438b97f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 11 deletions.
8 changes: 5 additions & 3 deletions server/models/tccdocs/ata.js
@@ -1,3 +1,5 @@
const path = require('path')

module.exports = function model(
doc,
{
Expand Down Expand Up @@ -29,7 +31,7 @@ module.exports = function model(
if (coOrientador) {
trechoCoorientador = `, ${tituloCoOrientador}${coOrientador} (COORIENTADOR(A))`
}
doc.image('./server/models/tccdocs/img/logoFacomp.png', 50, 35, {
doc.image(path.join(__dirname, './img/logoFacomp.png'), 50, 35, {
width: 76,
height: 80,
align: 'left',
Expand All @@ -50,7 +52,7 @@ module.exports = function model(
align: 'center'
}
)
doc.image('./server/models/tccdocs/img/logoUFPA.png', 480, 35, {
doc.image(path.join(__dirname, './img/logoUFPA.png'), 480, 35, {
width: 70,
height: 80,
align: 'right',
Expand Down Expand Up @@ -81,7 +83,7 @@ module.exports = function model(
doc.fontSize(12).text(`Conceito:`, 30, 520, {
align: 'left'
})
doc.image('./server/models/tccdocs/img/checkbox.png', 85, 516, {
doc.image(path.join(__dirname, './img/checkbox.png'), 85, 516, {
width: 195,
height: 14,
align: 'right',
Expand Down
4 changes: 3 additions & 1 deletion server/models/tccdocs/cd.js
@@ -1,3 +1,5 @@
const path = require('path')

module.exports = function model(
doc,
{
Expand All @@ -15,7 +17,7 @@ module.exports = function model(
.rect(0, 0, 697.14, 348.57)
.dash(5, { space: 10 })
.stroke()
doc.image('./server/models/tccdocs/img/logoUFPA.png', 150, 30, {
doc.image(path.join(__dirname, './img/logoUFPA.png'), 150, 30, {
width: 70,
height: 70,
align: 'left',
Expand Down
6 changes: 4 additions & 2 deletions server/models/tccdocs/certificado.js
@@ -1,3 +1,5 @@
const path = require('path')

module.exports = function model(
doc,
{
Expand Down Expand Up @@ -28,7 +30,7 @@ module.exports = function model(
conceito
}
) {
doc.image('./server/models/tccdocs/img/logoFacomp.png', 50, 35, {
doc.image(path.join(__dirname, './img/logoFacomp.png'), 50, 35, {
width: 76,
height: 80,
align: 'left',
Expand All @@ -49,7 +51,7 @@ module.exports = function model(
align: 'center'
}
)
doc.image('./server/models/tccdocs/img/logoUFPA.png', 480, 35, {
doc.image(path.join(__dirname, './img/logoUFPA.png'), 480, 35, {
width: 70,
height: 80,
align: 'right',
Expand Down
6 changes: 4 additions & 2 deletions server/models/tccdocs/certificadoConclusao.js
@@ -1,3 +1,5 @@
const path = require('path')

module.exports = function model(
doc,
{
Expand All @@ -19,7 +21,7 @@ module.exports = function model(
.lineWidth(3)
.stroke()
// Header
doc.image('./server/models/tccdocs/img/logoRepublica.jpg', 150, 30, {
doc.image(path.join(__dirname, './img/logoRepublica.jpg'), 150, 30, {
width: 80,
height: 80,
align: 'left',
Expand All @@ -41,7 +43,7 @@ module.exports = function model(
}
)

doc.image('./server/models/tccdocs/img/logoUFPA.png', 580, 35, {
doc.image(path.join(__dirname, './img/logoUFPA.png'), 580, 35, {
width: 70,
height: 80,
align: 'right',
Expand Down
6 changes: 4 additions & 2 deletions server/models/tccdocs/divulgacao.js
@@ -1,3 +1,5 @@
const path = require('path')

module.exports = function model(
doc,
{
Expand All @@ -23,7 +25,7 @@ module.exports = function model(
resumo
}
) {
doc.image('./server/models/tccdocs/img/logoFacomp.png', 50, 35, {
doc.image(path.join(__dirname, './img/logoFacomp.png'), 50, 35, {
width: 76,
height: 80,
align: 'left',
Expand All @@ -44,7 +46,7 @@ module.exports = function model(
align: 'center'
}
)
doc.image('./server/models/tccdocs/img/logoUFPA.png', 480, 35, {
doc.image(path.join(__dirname, './img/logoUFPA.png'), 480, 35, {
width: 70,
height: 80,
align: 'right',
Expand Down
4 changes: 3 additions & 1 deletion server/models/tccdocs/listaFrequencia.js
@@ -1,3 +1,5 @@
const path = require('path')

module.exports = function model(
doc,
index,
Expand All @@ -6,7 +8,7 @@ module.exports = function model(
// const doc = new PDFDocument

// Header
doc.image('./server/models/tccdocs/img/logoFacomp.png', 50, 30, {
doc.image(path.join(__dirname, './img/logoFacomp.png'), 50, 30, {
width: 70,
height: 80,
align: 'left',
Expand Down

0 comments on commit 438b97f

Please sign in to comment.