Skip to content

Commit 753df2c

Browse files
author
Srinath Janakiraman
committed
downgraded version back to 1.5x
1 parent 7929e09 commit 753df2c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ server.route({
4141
let html = path.join(__dirname, '/static/index.html')
4242

4343
fs.readFile(html, 'utf8', function (error, data) {
44-
pdf.create(data, {format: 'A4'}).toStream(function (err, stream) {
44+
pdf.create(data, {format: 'A5'}).toStream(function (err, stream) {
4545
if (err) {
4646
console.error(err)
4747
reply('An error occurred while generating pdf!!')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"license": "ISC",
1515
"dependencies": {
1616
"hapi": "^13.0.0",
17-
"html-pdf": "^2.0.1"
17+
"html-pdf": "^1.5.0"
1818
}
1919
}

0 commit comments

Comments
 (0)