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
var htmlPdfChrome = require('html-pdf-chrome'); | |
var options = { | |
port: 9222, | |
printOptions: { | |
printBackground: true, | |
marginTop: 0, | |
marginBottom: 0, | |
marginLeft: 0, | |
marginRight: 0, |
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
var dataGathererService = require('./dataGathererModule/dataGathererService'); | |
var htmlGenerator = require('./pdfTemplate/htmlGenerator'); | |
var generatePDF = require('./pdfGenerator/pdfGenerator'); | |
var constants = require('./constants'); | |
function pdfGeneratorService() { | |
var templateFile = './pdfGenerationModule/pdfTemplate/template.ejs'; | |
var outputFile = constants.PDF_OUTPUT_DIR + 'pdf-' + new Date().getTime() + '.pdf'; |