diff --git a/lib/pdfCreator.js b/lib/pdfCreator.js index 766e5cb..d29a540 100644 --- a/lib/pdfCreator.js +++ b/lib/pdfCreator.js @@ -31,7 +31,7 @@ function createPDFReport(data) { var filePath = "./reports/report-" + year + "-" + month + "-" + day + ".pdf" var fileName = "report-" + year + "-" + month + "-" + day + ".pdf" // create the pdf landscape to fit the table - pdf.create(resultHTML, { format: 'Letter',"orientation": "letter" }).toFile(filePath, function(error, result){ + pdf.create(resultHTML, { format: 'Letter',"orientation": "letter", phantomArgs: ['--web-security=no', '--local-url-access=false']}, ).toFile(filePath, function(error, result){ // create file to send pdf file back to user does not take up space on our server if (error) { // report pdf creation error console.log("Could not create PDF")