Skip to content

Commit

Permalink
Merge pull request #105 from codeforsanjose/fix/npm-audit_html-pdf
Browse files Browse the repository at this point in the history
fixing vulnerability with html-pdf package
  • Loading branch information
JMStudiosJoe committed Apr 5, 2020
2 parents 035f908 + 59ea849 commit f60a784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdfCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f60a784

Please sign in to comment.