Skip to content

Instantly share code, notes, and snippets.

View satyendra-singh-talentica's full-sized avatar

Satyendra Singh satyendra-singh-talentica

View GitHub Profile
var htmlPdfChrome = require('html-pdf-chrome');
var options = {
port: 9222,
printOptions: {
printBackground: true,
marginTop: 0,
marginBottom: 0,
marginLeft: 0,
marginRight: 0,
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';